EditorDebuggerPlugin provides functions related to the editor side of the debugger.
To interact with the debugger, an instance of this class must be added to the editor via EditorPlugin.add_debugger_plugin.
Once added, the _setup_session callback will be called for every EditorDebuggerSession available to the plugin, and when new ones are created (the sessions may be inactive during this stage).
You can retrieve the available EditorDebuggerSessions via get_sessions or get a specific one via get_session.
Override this method to process incoming messages. The session_id
is the ID of the EditorDebuggerSession that received the message (which you can retrieve via get_session).
Override this method to enable receiving messages from the debugger. If capture
is "my_message" then messages starting with "my_message:" will be passes to the _capture method.
Override this method to be notified whenever a new EditorDebuggerSession is created (the session may be inactive during this stage).
Returns the EditorDebuggerSession with the given id
.
Returns an array of EditorDebuggerSession currently available to this debugger plugin.
Note: Sessions in the array may be inactive, check their state via EditorDebuggerSession.is_active.