You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Allow selecting editor debug host and port.
Possibly fixes various editor<->debugger connection related problems.
(cherry picked from commit 98eb58a93c)
This commit is contained in:
@@ -564,8 +564,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
ScriptDebuggerRemote *sdr = memnew(ScriptDebuggerRemote);
|
||||
uint16_t debug_port = GLOBAL_DEF("debug/remote_port", 6007);
|
||||
if (debug_host.find(":") != -1) {
|
||||
debug_port = debug_host.get_slicec(':', 1).to_int();
|
||||
debug_host = debug_host.get_slicec(':', 0);
|
||||
int sep_pos = debug_host.find_last(":");
|
||||
debug_port = debug_host.substr(sep_pos + 1, debug_host.length()).to_int();
|
||||
debug_host = debug_host.substr(0, sep_pos);
|
||||
}
|
||||
Error derr = sdr->connect_to_host(debug_host, debug_port);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user