From 0a31a3b5948d9e134106bf349c08fe56c7d13ccc Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 31 Dec 2022 16:46:13 +0100 Subject: [PATCH] Don't enable remote debugging in the android editor for now. This fixes black screen when a project encounters a script error. --- editor/editor_run.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp index 03c1132d2..b472d09fe 100644 --- a/editor/editor_run.cpp +++ b/editor/editor_run.cpp @@ -61,6 +61,7 @@ Error EditorRun::run(const String &p_scene, const String &p_custom_args, const L args.push_back(resource_path.replace(" ", "%20")); } +#ifndef ANDROID_ENABLED args.push_back("--remote-debug"); const String conn_string = ScriptEditor::get_singleton()->get_debugger()->get_connection_string(); @@ -71,6 +72,8 @@ Error EditorRun::run(const String &p_scene, const String &p_custom_args, const L const int remote_port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port"); args.push_back(remote_host + ":" + String::num(remote_port)); } +#endif + args.push_back("--allow_focus_steal_pid"); args.push_back(itos(OS::get_singleton()->get_process_id()));