aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_run.cpp
diff options
context:
space:
mode:
authorEmanuele Fornara2017-03-28 00:53:59 +0100
committerEmanuele Fornara2017-03-29 19:44:18 +0100
commitfacacb886cbea5e4ba9949bc7c8bc12dd20a2ddd (patch)
tree10c2494ec9cd2840b3f90251c8901a7f9d773b67 /editor/editor_run.cpp
parente3d6d863af4a0b734e90771f76bee1ccb905ee6d (diff)
downloadgodot-facacb886cbea5e4ba9949bc7c8bc12dd20a2ddd.tar.gz
godot-facacb886cbea5e4ba9949bc7c8bc12dd20a2ddd.tar.zst
godot-facacb886cbea5e4ba9949bc7c8bc12dd20a2ddd.zip
Workaround to allow debugging on Windows when offline
Diffstat (limited to 'editor/editor_run.cpp')
-rw-r--r--editor/editor_run.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp
index e571c1971..0e9c0b77b 100644
--- a/editor/editor_run.cpp
+++ b/editor/editor_run.cpp
@@ -47,7 +47,13 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
if (true) {
args.push_back("-rdebug");
- args.push_back("localhost:" + String::num(GLOBAL_DEF("debug/debug_port", 6007)));
+#ifdef WINDOWS_ENABLED
+ // Avoid failing DNS lookup on disconnected Windows machines.
+ const char *debug_host = "127.0.0.1:";
+#else
+ const char *debug_host = "localhost:";
+#endif
+ args.push_back(debug_host + String::num(GLOBAL_DEF("debug/debug_port", 6007)));
}
args.push_back("-epid");