19 May 2015

Tags: groovy | grails |

blog_post_image

I’ve been using Grails v.2.5.0 and tried to debug Grails app via traditional Intellij IDEA 14 Debug with no success.

To be short: using IDEA Debug allows us debug Grails build system only. Why?

Forked execution is configured via the grails-app/conf/BuildConfig.groovy file. The following is the default configuration:

grails.project.fork = [
 ...
   run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256], // configure settings for the run-app JVM
 ...
]

Based on this we should create two IDEA Run/Debug Configurations:

blog_post_image_inline

And run this Configuration. We should get the next output

Listening for transport dt_socket at address: 5005
|Server running. Browse to http://localhost:8080/TekDays

This socket address will be used for Remote connection.

blog_post_image_inline

And run this Configuation. Now, we are able to debug our application.

The main idea is that we should have two running Configurations!

References


comments powered by Disqus