Revert "Always stop script debugger when stopping game"

This reverts commit d1a5d9da3e.

This unfortunately breaks the DAP.

Fixes #115188.
This commit is contained in:
Rémi Verschelde
2026-01-21 15:30:56 +01:00
parent 6b76a5a8dc
commit dc1a92b9a2

View File

@@ -322,7 +322,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();