This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When choosing Debug from the project menu (of a Grails project), the debugger does not start working, and no output is displayed in the console.
I confirm the reported behaviour: NetBeans is expecting a no longer used "grails-debug" command to start the debug. The debug for grails 3 projects is done passing the --debug-jvm parameter when running. Grails 2 requires the --debug-fork parameter. I've experimented with a preliminary patch for a grails 3 project with the correct parameter and debug worked well (setting breakpoints and inspecting declared variables). I'll prepare a patch that works with grails 2 and 3 and report back.
Created attachment 156957 [details] Uses the appropriate flags to run grails 2 and 3 in debug. This patch applies the correct flags to enable the debug mode. In order to apply the right flag I've added the grails 2 & 3 versions which revealed a problem: The approach used to find the grails platform version isn't compatible with grails 3 - #256159 Therefore this patch depends on the patch provided for #256159 to work correctly. I've tested against grails 2.5.1, 3.0.4 and 3.0.9 and got the expected behaviour. I've left the grails 1 approach intact, which requires the grails-debug command. However I wonder if it's reasonable to keep supporting grails 1.
*** Bug 220937 has been marked as a duplicate of this bug. ***
Patch integrated, rev http://hg.netbeans.org/core-main/rev/65d3bf743e68
(In reply to bruno.flavio from comment #4) > Patch integrated, rev http://hg.netbeans.org/core-main/rev/65d3bf743e68 Good job. Waiting for the dev build to test it.
This is not fixed in 8.1 yet. Only trunk i.e. development version right now.
Integrated into 'main-silver', will be available in build *201512160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/65d3bf743e68 User: Bruno Fl
"Verified working with *201512310002* on Grails 3.0.4 and 2.5.1."
This issue resolves the inability to debug grails 2 and 3 applications. As such I believe it should be included in the 8.1 Patch 1, as well as the issue it depends on - #256159.
Bruno, can you please integrate this fix to release81 branch? Thanks!
For the record, deadline is 1/31.
(In reply to Jiri Kovalsky from comment #11) > For the record, deadline is 1/31. Sure. I'll integrate the fix and upgrade the relevant module versions by Friday.
The fix has been applied to the release81 branch.
Thanks Bruno. Do you have changeset number?
(In reply to Jiri Kovalsky from comment #14) > Thanks Bruno. Do you have changeset number? Sorry, here it is: Fix: http://hg.netbeans.org/releases/rev/d16a179c4dfe Spec version and message update: http://hg.netbeans.org/releases/rev/e6a78d0b0996