IntelliJ IDEA Debugger isn't working on a Grails Project

ricardogobbo picture ricardogobbo · Oct 8, 2013 · Viewed 22.2k times · Source

I can't debug my code in IntelliJ IDEA. When debug mode is active and running, but the breakpoints don't have that "v" checked that represents a valid and stoppable breakpoint.

See the image:

enter image description here

I really search on the web for an answer. What am I supposed to do?

Answer

Igors picture Igors · Nov 4, 2013

I have tried all mentioned here without success. The only helpful information is here.

In essence you should disable forked execution by adding the following to grails-app/conf/BuildConfig.groovy:

grails.project.fork = [
    test: false,
    run: false
]

Now debugging is available in IntelliJ IDEA Ultimate Edition v.12.1.6 just by ordinary Debug without Remote debugging. Tested on Grails 2.3.1, Java 1.7.0_45, Windows 7 64-bit.