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.
Currently, if I want to debug a test, I can possibly run "grails-debug -unit FooBar" and then race to attach the debugger. The proposed feature would allow checking a "Debug" checkbox in the "Execute Grails Command..." dialog and would automatically launch the command using grails-debug, then launch the debugger and attach it to the running process.
Created attachment 83378 [details] patch to implement this enhancement
Some of this functionality was hinted at in the "Run Grails Command..." dialog, the attached patch revives that and implements it. I look forward to your comments and possibly getting this into netbeans.
Created attachment 88438 [details] zipped up set of individual file patches
Created attachment 88439 [details] a one patch file (all changes in one patch)
Any chance of this minor enhancement making into the Grails support ?
I plan to provide better support for debugging in next release and I will incorporate this change as well. BTW simple JPDADebugger.attach won't work well imo. Otherwise the patch looks good. Thanks for that.
I figured that JPDADebugger.attach is not perfect, but it's the simplest thing that works. I poked around the debugger API but couln't figure it out - can you give a hint/pointer of the proper way of doing this ?
I'm working on such piece of code as it will be needed for the debugger anyway. I'll let you know.
Closing this as duplicate of issue 123169. I've just attached patch to issue 123169. akochnev, would be great if you could test it - it contains both Run/Debug action from main menu and "Run/Debug Grails Command" as well. *** This issue has been marked as a duplicate of 123169 ***
I'll test this today : I was just about to rebuild my patched modules to use the "Run Grails Command.." in debug mode in 6.8 beta.