فهرست منبع

Merge pull request #66654 from akien-mga/3.x-debugger-clear-stack-dump-on-exit

Debugger: Clear stack dump on execution stop
Rémi Verschelde 2 سال پیش
والد
کامیت
5a424bc306
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      editor/script_editor_debugger.cpp

+ 1 - 2
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) {