2020-05-18 14:55:49 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "EditorDebuggerPlugin" inherits= "Control" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-05-18 14:55:49 +00:00
<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" />
2022-08-06 18:11:48 +00:00
<param 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" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "name" type= "StringName" />
<param index= "1" name= "callable" type= "Callable" />
2020-05-18 14:55:49 +00:00
<description >
2022-08-12 16:07:53 +00:00
Registers a message capture with given [param name]. If [param name] is "my_message" then messages starting with "my_message:" will be called with the given callable.
2020-05-18 14:55:49 +00:00
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" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "message" type= "String" />
<param index= "1" name= "data" type= "Array" />
2020-05-18 14:55:49 +00:00
<description >
2022-08-12 16:07:53 +00:00
Sends a message with given [param message] and [param data] array.
2020-05-18 14:55:49 +00:00
</description>
</method>
<method name= "unregister_message_capture" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param 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" >
2022-08-06 18:11:48 +00:00
<param 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>