1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Fix debugger immediate disconnect

Address https://github.com/godotengine/godot/issues/108518
This commit is contained in:
Fredia Huya-Kouadio
2025-07-16 19:47:59 -07:00
parent 71a9948157
commit f713a20c94
2 changed files with 16 additions and 1 deletions

View File

@@ -311,7 +311,9 @@ void EditorDebuggerNode::stop(bool p_force) {
// Also close all debugging sessions.
_for_all(tabs, [&](ScriptEditorDebugger *dbg) {
dbg->_stop_and_notify();
if (dbg->is_session_active()) {
dbg->_stop_and_notify();
}
});
_break_state_changed();
breakpoints.clear();