how can i debug at runtime using intellij?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
shnizle
Posts: 5
Joined: 04 Mar 2008, 16:45

how can i debug at runtime using intellij?

Post 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?
SmArt
Posts: 8
Joined: 09 Feb 2009, 22:19
Location: Ukraine
Contact:

Post by SmArt »

Yes, it is very useful topic! Please help.
Be smart...
dabur
Posts: 3
Joined: 23 Dec 2010, 09:25

Post by dabur »

SmArt wrote:Yes, it is very useful topic! Please help.
agree.. !
mente
Posts: 73
Joined: 14 Apr 2011, 14:27

Post 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
Post Reply