| 469 | } |
| 470 | |
| 471 | void 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 | |
| 493 | void EditorDebuggerNode::_debugger_wants_stop(int p_id) { |
| 494 | // Ask editor to kill PID. |
nothing calls this directly
no test coverage detected