Remote Debugging

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

albymack
Posts: 17
Joined: 09 May 2022, 21:17

Remote Debugging

Postby albymack » 06 Jul 2022, 22:42

SFS2x 2.18 running on cloud server ubuntu 20.01
client development window 10 machine using Netbeans.

I had the hardest time getting remote debugging working. Following the directions at:

https://smartfoxserver.com/blog/how-to- ... xtensions/

Whenever I tried to attach remote debugger, I would get a connection refused. After googling around for ages, I found this little bit of info. Instead of

-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

I had to use

-Xrunjdwp:transport=dt_socket,address=0.0.0.0:8787,server=y,suspend=n

Then I was able to connect the netbeans debugger to the sfs2x instance. It seems using just address=8787 causes it to bind to 127.0.0.1:8787 and thus only allow localhost to do remote debugging.

Perhaps this can be updated in the docs? I suppose the original version of the line would have worked for local host? Is there some other way to get 8787 to bind to all address instead of just 127.0.0.1?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Remote Debugging

Postby Lapo » 07 Jul 2022, 06:15

Hi,
thanks for the heads-up. It may be that rules for remote debugging have changed since the docs were written (that article is relatively old)

We'll check it out and update it where needed.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Remote Debugging

Postby Lapo » 07 Jul 2022, 08:00

Update: the doc article has been fixed.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 46 guests