MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / EditorDebuggerSession

Class EditorDebuggerSession

editor/debugger/editor_debugger_plugin.h:45–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43class ScriptEditorDebugger;
44
45class EditorDebuggerSession : public RefCounted {
46 GDCLASS(EditorDebuggerSession, RefCounted);
47
48private:
49 HashSet<Control *> tabs;
50
51 ScriptEditorDebugger *debugger = nullptr;
52
53 void _breaked(bool p_really_did, bool p_can_debug, const String &p_message, bool p_has_stackdump);
54 void _started();
55 void _stopped();
56 void _debugger_gone_away();
57
58protected:
59 static void _bind_methods();
60
61public:
62 void detach_debugger();
63
64 void add_session_tab(Control *p_tab);
65 void remove_session_tab(Control *p_tab);
66 void send_message(const String &p_message, const Array &p_args = Array());
67 void toggle_profiler(const String &p_profiler, bool p_enable, const Array &p_data = Array());
68 bool is_breaked();
69 bool is_debuggable();
70 bool is_active();
71
72 void set_breakpoint(const String &p_path, int p_line, bool p_enabled);
73
74 EditorDebuggerSession(ScriptEditorDebugger *p_debugger);
75 ~EditorDebuggerSession();
76};
77
78class EditorDebuggerPlugin : public RefCounted {
79 GDCLASS(EditorDebuggerPlugin, RefCounted);

Callers 1

create_sessionMethod · 0.85

Calls 1

ArrayClass · 0.50

Tested by

no test coverage detected