Debugging in IntelliJ?

396 views
Skip to first unread message

Mike Hearn

unread,
Oct 17, 2014, 2:04:05 PM10/17/14
to ninja-f...@googlegroups.com
I'd like to use the very convenient SuperDevMode but connect it to a debugger via IntelliJ. There are instructions for Eclipse and NetBeans, but I tried to adapt them to IntelliJ and it didn't work - breakpoints do not have any effect.

Has anyone else solved this before?

Raphael André Bauer

unread,
Oct 17, 2014, 3:20:42 PM10/17/14
to ninja-f...@googlegroups.com
Hi Mike,


that's technically not (yet) possible. But you can simply use jetty
and run your application via mvn jetty:run, connect your debugger and
debug your app...

What I personally often do is to run testcases to debug my
application. That works perfectly fine (because running testcases
never uses the SuperDevMode).

Also have a look at: https://github.com/ninjaframework/ninja/issues/202

Cheers,


Raphael
> --
> You received this message because you are subscribed to the Google Groups
> "ninja-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ninja-framewo...@googlegroups.com.
> To post to this group, send email to ninja-f...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ninja-framework/3655f7c3-b441-49ba-b905-2fdb6afc7876%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Stéphane Cl

unread,
Oct 19, 2014, 4:00:04 AM10/19/14
to ninja-f...@googlegroups.com
Hello Mike,
To add to Raphael Bauer's answer, IntelliJ lets you debug maven goals, you just need to select jetty:run in the dropdown and click the debug icon. You should not need to configure anything or attach a debugger manually.
I use it the following way : I run superdevmode in a shell window from the command line, this is convenient enough for most of the normal job. When I need breakpoints, I "ctrl-c" superdevmode in the shell and launch jetty-run from Intellij. I tried running superdevmode from intellij directly but for some reasons (perhaps related to my setup) it did not seem to work nicely, I didn't bother. After 2 years of play2 development, I am used to running IDEs and build tools separately.

I also spent some time trying to connect my debugger to superdevmode, I guess a word about the fact that it's technically not possible would be welcome in the documentation.
Kind regards
Reply all
Reply to author
Forward
0 new messages