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?
Remote Debugging
Re: Remote Debugging
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
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
Re: Remote Debugging
Update: the doc article has been fixed.
Thanks
Thanks
Who is online
Users browsing this forum: Stevenor and 84 guests