Page 1 of 1

how can i debug at runtime using intellij?

Posted: 14 Mar 2008, 14:59
by shnizle
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?

Posted: 15 Jun 2010, 10:38
by SmArt
Yes, it is very useful topic! Please help.

Posted: 23 Dec 2010, 09:33
by dabur
SmArt wrote:Yes, it is very useful topic! Please help.
agree.. !

Posted: 22 Apr 2011, 13:50
by mente
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

Code: Select all

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8337
Edit sfs2x.sh, add copy-pasted line. For me it was

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
Choose newly created configuration, Run->Debug.
After this IDEA will attach to jvm instance.

Hope it helps