hey , i saw the sticky post guide that instruct how to debug the server at runtime using eclipse ,
does anyone know how can i do it with intellij?
how can i debug at runtime using intellij?
Hello,
Probably it's too late to share, but anyway
. Tried using Idea X:
Run -> Edit Configurations.
Click +, choose Remote. Enter configuration settings. I've just changed host to another one, because SFS is on the other host.
Copy-paste generated line. For me it was
Edit sfs2x.sh, add copy-pasted line. For me it was
Choose newly created configuration, Run->Debug.
After this IDEA will attach to jvm instance.
Hope it helps
Probably it's too late to share, but anyway
Run -> Edit Configurations.
Click +, choose Remote. Enter configuration settings. I've just changed host to another one, because SFS is on the other host.
Copy-paste generated line. For me it was
Code: Select all
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8337
Code: Select all
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8337 -cp "./:lib/*:lib/Jetty/*:extensions/__lib__/*" -Dfile.encoding=UTF-8 com.smartfoxserver.v2.Main $1 $2
After this IDEA will attach to jvm instance.
Hope it helps