2020-05-18 16:55:49 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 14:18:53 +01: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 16:55:49 +02:00
<brief_description >
A base class to implement debugger plugins.
</brief_description>
<description >
2021-10-15 14:30:58 +02: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 16:55:49 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "has_capture" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 20:11:48 +02:00
<param index= "0" name= "name" type= "StringName" />
2020-05-18 16:55:49 +02: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 15:28:05 +02:00
<return type= "bool" />
2020-05-18 16:55:49 +02: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 15:28:05 +02:00
<return type= "bool" />
2020-05-18 16:55:49 +02: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 15:28:05 +02:00
<return type= "bool" />
2020-05-18 16:55:49 +02:00
<description >
2021-06-07 10:17:32 +02: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 16:55:49 +02:00
</description>
</method>
<method name= "register_message_capture" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2022-08-06 20:11:48 +02:00
<param index= "0" name= "name" type= "StringName" />
<param index= "1" name= "callable" type= "Callable" />
2020-05-18 16:55:49 +02: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 15:28:05 +02:00
<return type= "void" />
2022-08-06 20:11:48 +02:00
<param index= "0" name= "message" type= "String" />
<param index= "1" name= "data" type= "Array" />
2020-05-18 16:55:49 +02: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 15:28:05 +02:00
<return type= "void" />
2022-08-06 20:11:48 +02:00
<param index= "0" name= "name" type= "StringName" />
2020-05-18 16:55:49 +02:00
<description >
Unregisters the message capture with given name.
</description>
</method>
</methods>
<signals >
<signal name= "breaked" >
2022-08-06 20:11:48 +02:00
<param index= "0" name= "can_debug" type= "bool" />
2020-05-18 16:55:49 +02: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>