0 votes

How can I :

  1. Run game server on a machine A ( using linux server version)

  2. Run godot on another machine B

  3. * do something * <- i dont know what to do here

  4. Debug, reload, stop the server on machine B

in Engine by (12 points)

1 Answer

0 votes

Can't you just run the Godot Editor on machine B as well?
If machine B has no screen, maybe you can use the command line debugger: https://docs.godotengine.org/en/3.1/getting_started/editor/command_line_tutorial.html#debugging

by (29,090 points)

yes but i want to run godot on machine B to debug the machine A

I'm not sure how that works from the editor, it looks like there is some form of remote debugging (because it's needed to debug from a mobile device, however that case is particular), but I don't see where it could specify an arbitrary IP. That said, it would also require machine A to be configured so that it even accepts this connection, imagine how unsafe that would be if you could do that with any Godot-made game...

Alternatively, maybe you could use use ssh or some other remote command line protocol to use Godot's command line debugger remotely.

I also asked on IRC:

<creikey> It should only work if the godot instance and the running game are on the same subnet
<creikey> there might be a way to manually configure from command line when running the game on the client the IP for remote debugging...
<creikey> yes in fact there is after looking at the output of --help
<creikey> you can run the godot game on the client with the argument --remote-debug [IP of computer][some open port I believe
<iFire> I made a patch for listening to remote machines but it's very janky
<iFire> https://github.com/fire/godot/tree/debug_listen feel free to make it great
<iFire> https://github.com/godotengine/godot/pull/28652
<iFire> usecase is mobile debug
<iFire> .. over the network
<creikey> yeah, it seems like the command line flag for remote debugging is useless without that feature :\
<creikey> iFire: what port does it listen at?
<iFire> the on you tell it to
<iFire> one*
<iFire> in the editor settings
<iFire> the more problematic part is doing the same in the command line of the debugged application
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.