D Nunes
D Nunes

Reputation: 93

Debugging grails 3.3.11 project in IntelliJ Idea Community

I am trying to debug my grails 3.3.11 source code using a community version of IntelliJ Idea. I don't know why but, even if a choose a break point, I run the command grails run-app -debug as I have seen in a variety of sites, the application never stops in the breakpoint. It executes all the program.

I have two questions. 1 - Is it possible to debug a grails 3.3.11 project using the community version of IntelliJ Idea? 2 - If so, how can I do that.

Thanks,

Alfredo

Upvotes: 0

Views: 348

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27245

I have two questions. 1 - Is it possible to debug a grails 3.3.11 project using the community version of IntelliJ Idea? 

Yes. The debugger in the community version of Intellij works well with Grails.

2 - If so, how can I do that.

There are a number of ways. You can create a run-configuration in IntelliJ to launch the application in debug mode. You can launch the application using ./gradlew bootRun --debug-jvm and then attach a remote debugger from the IDE (I do that all the time). The video at https://grails.org/blog/2017-01-20-4.html demonstrates using the debugger (that portion works the same in Community Edition vs Ultimate Edition).

Upvotes: 1

Related Questions