| 43 | class ScriptEditorDebugger; |
| 44 | |
| 45 | class EditorDebuggerSession : public RefCounted { |
| 46 | GDCLASS(EditorDebuggerSession, RefCounted); |
| 47 | |
| 48 | private: |
| 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 | |
| 58 | protected: |
| 59 | static void _bind_methods(); |
| 60 | |
| 61 | public: |
| 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 | |
| 78 | class EditorDebuggerPlugin : public RefCounted { |
| 79 | GDCLASS(EditorDebuggerPlugin, RefCounted); |