Debian Codegraph @

doc/classes/EditorDebuggerSession.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="EditorDebuggerSession" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A class to interact with the editor debugger.
5 </brief_description>
6 <description>
7 This class cannot be directly instantiated and must be retrieved via an [EditorDebuggerPlugin].
8 You can add tabs to the session UI via [method add_session_tab], send messages via [method send_message], and toggle [EngineProfiler]s via [method toggle_profiler].
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="add_session_tab">
14 <return type="void" />
15 <param index="0" name="control" type="Control" />
16 <description>
17 Adds the given [param control] to the debug session UI in the debugger bottom panel. The [param control]'s node name will be used as the tab title.
18 </description>
19 </method>
20 <method name="is_active">
21 <return type="bool" />
22 <description>
23 Returns [code]true[/code] if the debug session is currently attached to a remote instance.
24 </description>
25 </method>
26 <method name="is_breaked">
27 <return type="bool" />
28 <description>
29 Returns [code]true[/code] if the attached remote instance is currently in the debug loop.
30 </description>
31 </method>
32 <method name="is_debuggable">
33 <return type="bool" />
34 <description>
35 Returns [code]true[/code] if the attached remote instance can be debugged.
36 </description>
37 </method>
38 <method name="remove_session_tab">
39 <return type="void" />
40 <param index="0" name="control" type="Control" />
41 <description>
42 Removes the given [param control] from the debug session UI in the debugger bottom panel.
43 </description>
44 </method>
45 <method name="send_message">
46 <return type="void" />
47 <param index="0" name="message" type="String" />
48 <param index="1" name="data" type="Array" default="[]" />
49 <description>
50 Sends the given [param message] to the attached remote instance, optionally passing additionally [param data]. See [EngineDebugger] for how to retrieve those messages.
51 </description>
52 </method>
53 <method name="set_breakpoint">
54 <return type="void" />
55 <param index="0" name="path" type="String" />
56 <param index="1" name="line" type="int" />
57 <param index="2" name="enabled" type="bool" />
58 <description>
59 Enables or disables a specific breakpoint based on [param enabled], updating the Editor Breakpoint Panel accordingly.
60 </description>
61 </method>
62 <method name="toggle_profiler">
63 <return type="void" />
64 <param index="0" name="profiler" type="String" />
65 <param index="1" name="enable" type="bool" />
66 <param index="2" name="data" type="Array" default="[]" />
67 <description>
68 Toggle the given [param profiler] on the attached remote instance, optionally passing additionally [param data]. See [EngineProfiler] for more details.
69 </description>
70 </method>
71 </methods>
72 <signals>
73 <signal name="breaked">
74 <param index="0" name="can_debug" type="bool" />
75 <description>
76 Emitted when the attached remote instance enters a break state. If [param can_debug] is [code]true[/code], the remote instance will enter the debug loop.
77 </description>
78 </signal>
79 <signal name="continued">
80 <description>
81 Emitted when the attached remote instance exits a break state.
82 </description>
83 </signal>
84 <signal name="started">
85 <description>
86 Emitted when a remote instance is attached to this session (i.e. the session becomes active).
87 </description>
88 </signal>
89 <signal name="stopped">
90 <description>
91 Emitted when a remote instance is detached from this session (i.e. the session becomes inactive).
92 </description>
93 </signal>
94 </signals>
95 </class>