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

Method _debugger_stopped

editor/debugger/editor_debugger_node.cpp:471–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void EditorDebuggerNode::_debugger_stopped(int p_id) {
472 ScriptEditorDebugger *dbg = get_debugger(p_id);
473 ERR_FAIL_NULL(dbg);
474
475 bool found = false;
476 _for_all(tabs, [&](ScriptEditorDebugger *p_debugger) {
477 if (p_debugger->is_session_active()) {
478 found = true;
479 }
480 });
481 if (!found) {
482 EditorRunBar::get_singleton()->get_pause_button()->set_pressed(false);
483 EditorRunBar::get_singleton()->get_pause_button()->set_disabled(true);
484 SceneTreeDock *dock = SceneTreeDock::get_singleton();
485 if (dock->is_inside_tree()) {
486 dock->hide_remote_tree();
487 dock->hide_tab_buttons();
488 }
489 EditorNode::get_singleton()->notify_all_debug_sessions_exited();
490 }
491}
492
493void EditorDebuggerNode::_debugger_wants_stop(int p_id) {
494 // Ask editor to kill PID.

Callers

nothing calls this directly

Calls 9

_for_allFunction · 0.85
is_session_activeMethod · 0.80
get_pause_buttonMethod · 0.80
is_inside_treeMethod · 0.80
hide_remote_treeMethod · 0.80
hide_tab_buttonsMethod · 0.80
set_pressedMethod · 0.45
set_disabledMethod · 0.45

Tested by

no test coverage detected