From 1a7c1eb858e49d49cee057695d5075225fc299ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 30 Sep 2022 11:20:43 +0200 Subject: [PATCH] Debugger: Clear stack dump on execution stop Fixes #34198. --- editor/script_editor_debugger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 3b0aa2e2719..9ab24bcd683 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -234,7 +234,6 @@ void ScriptEditorDebugger::debug_next() { msg.push_back("next"); ppeer->put_var(msg); _clear_execution(); - stack_dump->clear(); } void ScriptEditorDebugger::debug_step() { ERR_FAIL_COND(!breaked); @@ -245,7 +244,6 @@ void ScriptEditorDebugger::debug_step() { msg.push_back("step"); ppeer->put_var(msg); _clear_execution(); - stack_dump->clear(); } void ScriptEditorDebugger::debug_break() { @@ -1560,6 +1558,7 @@ void ScriptEditorDebugger::_clear_execution() { stack_script = ResourceLoader::load(d["file"]); emit_signal("clear_execution", stack_script); stack_script.unref(); + stack_dump->clear(); } void ScriptEditorDebugger::start(int p_port, const IP_Address &p_bind_address) {