diff --git a/core/debugger/local_debugger.cpp b/core/debugger/local_debugger.cpp index b7af9c70861..85d197b3d49 100644 --- a/core/debugger/local_debugger.cpp +++ b/core/debugger/local_debugger.cpp @@ -292,6 +292,7 @@ void LocalDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) { MainLoop *main_loop = OS::get_singleton()->get_main_loop(); if (main_loop->get_class() == "SceneTree") { main_loop->call("quit", exit_code); + ScriptServer::set_scripting_enabled(false); } break; } else if (line.begins_with("delete")) {