From c8fabac8c76d72edc203232a4bd96d6a6e4e2c1a Mon Sep 17 00:00:00 2001 From: Ricardo Subtil Date: Tue, 14 Nov 2023 16:51:38 +0000 Subject: [PATCH] Fix DAP breakpoints being cleared on closed scripts (cherry picked from commit 760ff2e9339b95bcad1e4045c330c06e0ce9c98c) --- editor/plugins/script_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 4b379807b67..e0148e8030a 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -536,7 +536,7 @@ void ScriptEditor::_set_breakpoint(Ref p_script, int p_line, bool p_ } state["breakpoints"] = breakpoints; script_editor_cache->set_value(scr->get_path(), "state", state); - EditorDebuggerNode::get_singleton()->set_breakpoint(scr->get_path(), p_line + 1, false); + EditorDebuggerNode::get_singleton()->set_breakpoint(scr->get_path(), p_line + 1, p_enabled); } }