reckfellENGINE

EditorDebuggerPlugin

A base class to implement debugger plugins.

On this page
class EditorDebuggerPluginReckfellSharpEditorInherits RefCounted

A base class to implement debugger plugins.

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.AddDebuggerPlugin. Once added, the EditorDebuggerPlugin._SetupSession 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 EditorDebuggerPlugin.GetSessions or get a specific one via EditorDebuggerPlugin.GetSession.

To connect on the running game side, use the EngineDebugger singleton:

Note: While the game is running, ReckfellApi.Print and similar functions called in the editor do not print anything, the Output Log prints only game messages.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

EditorDebuggerPluginConstructor
# EditorDebuggerPlugin
C#
public EditorDebuggerPlugin();

Methods8

GetSessionEditorDebuggerSession
# GetSession
C#
public EditorDebuggerSession GetSession(int id);

Returns the EditorDebuggerSession with the given id.

Parameters
NameTypeDefault
idint—
Returns EditorDebuggerSession
GetSessionsReckfell.Collections.Array
# GetSessions
C#
public Reckfell.Collections.Array GetSessions();

Returns an array of EditorDebuggerSession currently available to this debugger plugin. Note: Sessions in the array may be inactive, check their state via EditorDebuggerSession.IsActive.

Returns Reckfell.Collections.Array
_BreakpointSetInTreevoid
# _BreakpointSetInTree
C#
public virtual void _BreakpointSetInTree(Script script, int line, bool enabled);

Override this method to be notified when a breakpoint is set in the editor.

Parameters
NameTypeDefault
scriptScript—
lineint—
enabledbool—
_BreakpointsClearedInTreevoid
# _BreakpointsClearedInTree
C#
public virtual void _BreakpointsClearedInTree();

Override this method to be notified when all breakpoints are cleared in the editor.

_Capturebool
# _Capture
C#
public virtual bool _Capture(string message, Reckfell.Collections.Array data, int sessionId);

Override this method to process incoming messages. The session_id is the ID of the EditorDebuggerSession that received the message. Use EditorDebuggerPlugin.GetSession to retrieve the session. This method should return true if the message is recognized.

Parameters
NameTypeDefault
messagestring—
dataReckfell.Collections.Array—
sessionIdint—
Returns bool
_GotoScriptLinevoid
# _GotoScriptLine
C#
public virtual void _GotoScriptLine(Script script, int line);

Override this method to be notified when a breakpoint line has been clicked in the debugger breakpoint panel.

Parameters
NameTypeDefault
scriptScript—
lineint—
_HasCapturebool
# _HasCapture
C#
public virtual bool _HasCapture(string capture);

Override this method to enable receiving messages from the debugger. If capture is "my_message" then messages starting with "my_message:" will be passed to the EditorDebuggerPlugin._Capture method.

Parameters
NameTypeDefault
capturestring—
Returns bool
_SetupSessionvoid
# _SetupSession
C#
public virtual void _SetupSession(int sessionId);

Override this method to be notified whenever a new EditorDebuggerSession is created. Note that the session may be inactive during this stage.

Parameters
NameTypeDefault
sessionIdint—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.