From 21003539a3694c45004e659995bf9fadcf9ae668 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 15 Jun 2023 12:04:38 +0200 Subject: [PATCH] Added warning for the android editor that android will kill the game after a few seconds if it's opened in the same window as the editor and then it goes to the backgond. Should be still enough to see what's the issue of you don't intentionally debug break though. --- editor/script_editor_debugger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 6f0c13e6f..57be4717f 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -1607,12 +1607,15 @@ void EditorScriptEditorDebugger::_notification(int p_what) { } EditorNode::get_log()->add_message("--- Debugging process started ---", EditorLog::MSG_TYPE_EDITOR); +#ifdef ANDROID_ENABLED + EditorNode::get_log()->add_message("Please note that curently if you run your app in the \"Same as Editor\" Window Placement, android will kill it after a few seconds if it goes to the background (= debug breaks). You can circumvent this by using the \"Side-by-side\" mode when debugging. It is available under Editor Settings->Window Placement->Android Window.", EditorLog::MSG_TYPE_EDITOR); +#endif ppeer->set_stream_peer(connection); //EditorNode::get_singleton()->make_bottom_panel_item_visible(this); //emit_signal("show_debugger",true); - + get_process_main_thread_id(); dobreak->set_disabled(false);