Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

EditorDebuggerSession

Inherits: RefCounted < Object

A class to interact with the editor debugger.

Description

This class cannot be directly instantiated and must be retrieved via a EditorDebuggerPlugin.

You can add tabs to the session UI via add_session_tab, send messages via send_message, and toggle EngineProfilers via toggle_profiler.

Methods

void

add_session_tab ( Control control )

bool

is_active ( )

bool

is_breaked ( )

bool

is_debuggable ( )

void

remove_session_tab ( Control control )

void

send_message ( String message, Array data=[] )

void

toggle_profiler ( String profiler, bool enable, Array data=[] )


Signals

breaked ( bool can_debug )

Emitted when the attached remote instance enters a break state. If can_debug is true, the remote instance will enter the debug loop.


continued ( )

Emitted when the attached remote instance exits a break state.


started ( )

Emitted when a remote instance is attached to this session (i.e. the session becomes active).


stopped ( )

Emitted when a remote instance is detached from this session (i.e. the session becomes inactive).


Method Descriptions

void add_session_tab ( Control control )

Adds the given control to the debug session UI in the debugger bottom panel.