How to debug vertx from IntelliJ

4,171 views
Skip to first unread message

Dmitry Meytin

unread,
Jan 9, 2013, 3:35:46 PM1/9/13
to ve...@googlegroups.com

Hi,
Here there is very useful explanation how to debug vertx from IntelliJ.
Unfortunately this is not working in the current  1.3 final version.
So, i did the following:
1) Used org.vertx.java.deploy.impl.cli.Starter instead of VertxMgr
2) Added langs.preoperties with default=org.vertx.java.deploy.impl.java.JavaVerticleFactory
3) And now I'm getting java.lang.IllegalStateException: Do not add application classes to the vert.x classpath

Please help,
Dmitry

bytor99999

unread,
Jan 9, 2013, 4:07:14 PM1/9/13
to ve...@googlegroups.com
I just added

export VERTX_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000'

environment variable, now when I start up vertx from the command line it is listening to port 8000. Then I just have a remote debug run configuration, change the port to 8000 and click the Run Debug button to run, and it connects.

Real simple

Mark

Dmitry Meytin

unread,
Jan 9, 2013, 4:33:08 PM1/9/13
to ve...@googlegroups.com
Indeed simple and works perfectly.
Thank you very much!

Asher Tarnopolski

unread,
Jan 10, 2013, 6:45:18 AM1/10/13
to ve...@googlegroups.com
i write type in "run [verticle] ...." in the Program arguments and point Working directory to my project's compile output path. 
this way i can debug locally. 

bytor99999

unread,
Jan 10, 2013, 9:48:34 AM1/10/13
to ve...@googlegroups.com
Can you post fully what you type into a run configuration to run it within IntelliJ? 

I always run mine outside in a terminal window.

Mark

Asher Tarnopolski

unread,
Jan 10, 2013, 12:29:47 PM1/10/13
to ve...@googlegroups.com

i just type the comand line that runs vertx.

attached a prtscr of intellij config.

Asher Tarnopolski

unread,
Jan 10, 2013, 12:31:20 PM1/10/13
to ve...@googlegroups.com
btw, you can add additional arguments, like -config blabla ...
Reply all
Reply to author
Forward
0 new messages