2020-05-18 14:55:49 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "EditorDebuggerPlugin" inherits= "Control" version= "4.0" >
<brief_description >
A base class to implement debugger plugins.
</brief_description>
<description >
2021-10-15 12:30:58 +00:00
[EditorDebuggerPlugin] provides functions related to the editor side of the debugger.
You don't need to instantiate this class; that is automatically handled by the debugger. [Control] nodes can be added as child nodes to provide a GUI for the plugin.
Do not free or reparent this node, otherwise it becomes unusable.
To use [EditorDebuggerPlugin], register it using the [method EditorPlugin.add_debugger_plugin] method first.
2020-05-18 14:55:49 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "has_capture" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "name" type= "StringName" />
2020-05-18 14:55:49 +00:00
<description >
Returns [code]true[/code] if a message capture with given name is present otherwise [code]false[/code].
</description>
</method>
<method name= "is_breaked" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2020-05-18 14:55:49 +00:00
<description >
Returns [code]true[/code] if the game is in break state otherwise [code]false[/code].
</description>
</method>
<method name= "is_debuggable" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2020-05-18 14:55:49 +00:00
<description >
Returns [code]true[/code] if the game can be debugged otherwise [code]false[/code].
</description>
</method>
<method name= "is_session_active" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2020-05-18 14:55:49 +00:00
<description >
2021-06-07 08:17:32 +00:00
Returns [code]true[/code] if there is an instance of the game running with the attached debugger otherwise [code]false[/code].
2020-05-18 14:55:49 +00:00
</description>
</method>
<method name= "register_message_capture" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "StringName" />
<argument index= "1" name= "callable" type= "Callable" />
2020-05-18 14:55:49 +00:00
<description >
Registers a message capture with given [code]name[/code]. If [code]name[/code] is "my_message" then messages starting with "my_message:" will be called with the given callable.
Callable must accept a message string and a data array as argument. If the message and data are valid then callable must return [code]true[/code] otherwise [code]false[/code].
</description>
</method>
<method name= "send_message" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "message" type= "String" />
<argument index= "1" name= "data" type= "Array" />
2020-05-18 14:55:49 +00:00
<description >
Sends a message with given [code]message[/code] and [code]data[/code] array.
</description>
</method>
<method name= "unregister_message_capture" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "StringName" />
2020-05-18 14:55:49 +00:00
<description >
Unregisters the message capture with given name.
</description>
</method>
</methods>
<signals >
<signal name= "breaked" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "can_debug" type= "bool" />
2020-05-18 14:55:49 +00:00
<description >
Emitted when the game enters a break state.
</description>
</signal>
<signal name= "continued" >
<description >
Emitted when the game exists a break state.
</description>
</signal>
<signal name= "started" >
<description >
Emitted when the debugging starts.
</description>
</signal>
<signal name= "stopped" >
<description >
Emitted when the debugging stops.
</description>
</signal>
</signals>
</class>