3
votes

I use IntelliJ to develop Grails apps and when testing locally, I usually launch the app from IntelliJ which runs the app in an embedded Tomcat server. IntelliJ provides JavaScript debugging, but until now I've always used Firebug, but the idea of being able to use IntelliJ for all my debugging is pretty appealing.

I tried setting a breakpoint in IntelliJ and lauching the app in debug mode from inside IntelliJ, but the breakpoint was ignored. I also tried launching the app from outside IntelliJ via grails-debug run-app, then connecting to it with a remote JVM debugger, but the breakpoint was still ignored. Does someone know how I can debug JavaScript of a Grails app launched from IntelliJ?

I'm using IntelliJ Ultimate Edition version 13

1

1 Answers

3
votes

Actually you need to do some extra work for debugging JavaScript with IntelliJ. Here are some useful articles about how you can configure your IDE and browser for JS debugging.

http://blog.jetbrains.com/idea/2011/03/intellij-idea-debugging-javascript-in-google-chrome/ http://wiki.jetbrains.net/intellij/Debugging_JavaScript_with_IntelliJ_IDEA

After configuration you need to just run your Grails application in debug mode.