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= "EngineDebugger" inherits= "Object" 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 >
Exposes the internal debugger.
</brief_description>
<description >
[EngineDebugger] handles the communication between the editor and the running game. It is active in the running game. Messages can be sent/received through it. It also manages the profilers.
</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 capture with the given name is present otherwise [code]false[/code].
</description>
</method>
<method name= "has_profiler" >
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 profiler with the given name is present otherwise [code]false[/code].
</description>
</method>
<method name= "is_active" >
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 debugger is active otherwise [code]false[/code].
</description>
</method>
<method name= "is_profiling" >
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 profiler with the given name is present and active otherwise [code]false[/code].
</description>
</method>
<method name= "profiler_add_frame_data" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "StringName" />
<argument index= "1" name= "data" type= "Array" />
2020-05-18 14:55:49 +00:00
<description >
Calls the [code]add[/code] callable of the profiler with given [code]name[/code] and [code]data[/code].
</description>
</method>
<method name= "profiler_enable" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "StringName" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "arguments" type= "Array" default= "[]" />
2020-05-18 14:55:49 +00:00
<description >
Calls the [code]toggle[/code] callable of the profiler with given [code]name[/code] and [code]arguments[/code]. Enables/Disables the same profiler depending on [code]enable[/code] argument.
</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= "register_profiler" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "name" type= "StringName" />
2022-02-06 00:55:58 +00:00
<argument index= "1" name= "profiler" type= "EngineProfiler" />
2020-05-18 14:55:49 +00:00
<description >
2022-02-10 11:00:11 +00:00
Registers a profiler with the given [code]name[/code]. See [EngineProfiler] for more information.
2020-05-18 14:55:49 +00:00
</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 [code]name[/code].
</description>
</method>
<method name= "unregister_profiler" >
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 a profiler with given [code]name[/code].
</description>
</method>
</methods>
</class>