Debug Grails plugin with Intellij

I have a main application in one project, and I want to debug the plugin that it references. Intellij allows you to open only one project at a time.

Is there a way to debug a plugin by first launching the main application?

These are grails 2.2.0 and Intellij 12 Ultimate. Thanks.

+4
source share
1 answer

You can import connect the plugin as an add-on module in IntelliJ to your application and set the location of the Grails plugin to look at the absolute location of the plugin.

This can be done using this parameter in BuildConfig.groovy

grails.plugin.location.your-plugin = "/path/to/your/plugin"

@Refer Plugins for details.

Add breakpoints to the imported module (grails plugin) and run the application in debug mode to get to the breakpoint.

+6
source

Source: https://habr.com/ru/post/1487061/


All Articles