Merge pull request #115208 from akien-mga/revert-114457

Revert "Always stop script debugger when stopping game"
This commit is contained in:
Rémi Verschelde 2026-01-21 17:44:25 +01:00
commit 8b2d988ba7
No known key found for this signature in database
GPG key ID: C3336907360768E1

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();