From d568b25e366cd99fa7479e054ad4f7fcb5079501 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 3 Oct 2022 15:21:25 +0200 Subject: [Editor] Better expose EditorDebuggerPlugin. Now splitted into two classes: - EditorDebuggerPlugin (RefCounted). - EditorDebuggerSession (abstract). This allows the EditorPlugin to be in control of the debugger plugin lifecycle, be notified when sessions are created, and customize each of them independently. We should slowly transition the various profilers and captures in ScriptEditorDebugger to their own plugins, and decouple ScriptEditorDebugger from it's UI part (making it the "real" EditorDebuggerSession potentially dropping the wrappers). --- doc/classes/EditorDebuggerSession.xml | 86 +++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 doc/classes/EditorDebuggerSession.xml (limited to 'doc/classes/EditorDebuggerSession.xml') diff --git a/doc/classes/EditorDebuggerSession.xml b/doc/classes/EditorDebuggerSession.xml new file mode 100644 index 0000000000..faf528c143 --- /dev/null +++ b/doc/classes/EditorDebuggerSession.xml @@ -0,0 +1,86 @@ + + + + A class to interact with the editor debugger. + + + This class cannot be directly instantiated and must be retrieved via a [EditorDebuggerPlugin]. + 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]. + + + + + + + + + Adds the given [param control] to the debug session UI in the debugger bottom panel. + + + + + + Returns [code]true[/code] if the debug session is currently attached to a remote instance. + + + + + + Returns [code]true[/code] if the attached remote instance is currently in the debug loop. + + + + + + Returns [code]true[/code] if the attached remote instance can be debugged. + + + + + + + Removes the given [param control] from the debug session UI in the debugger bottom panel. + + + + + + + + Sends the given [param message] to the attached remote instance, optionally passing additionally [param data]. See [EngineDebugger] for how to retrieve those messages. + + + + + + + + + Toggle the given [param profiler] on the attached remote instance, optionally passing additionally [param data]. See [EngineProfiler] for more details. + + + + + + + + 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. + + + + + Emitted when the attached remote instance exits a break state. + + + + + Emitted when a remote instance is attached to this session (i.e. the session becomes active). + + + + + Emitted when a remote instance is detached from this session (i.e. the session becomes inactive). + + + + -- cgit v1.2.3