godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.36k stars 20.02k forks source link

Unavailable debugger with multiple game instance #24010

Closed scorsi closed 5 years ago

scorsi commented 5 years ago

Godot version: 3.0

OS/device including version: MacBook Pro 13-inch 2017 (10.14.1 Mojave)

Issue description: Unable to debug with two instance of godot: client and server. Which is very very very useful when creating networking multiplayer game. This is a known issue since 2016 but may be forgotten: Godot QA.

In one editor, we can't open more than one game. If we run two editors, the last game window opened can't connect to the godot debugger. (For those who don't know how to run multiple instance of a programme in Mac: open -n -a <program in apps or .app file>)

There is an error message in the last editor which launch the game: Error listening on port 6007. May be the problem is due to the listening port which is the same for all godot editor instance/window. Could you think is it possible to start an available port discovery to start the godot debugger and game with the same available port, we could so run multiple game instance for client/server ?

Zylann commented 5 years ago

A current workaround is to use the command-line debugger and specify the port with it. I've been using it for my own networking prototypes and editor plugins (https://github.com/godotengine/godot/issues/5983). I can't find where it is documented though.

See also https://github.com/godotengine/godot/issues/20020

Chaosus commented 5 years ago

Yeah, seems like a duplicate of #20020. Closed.