grails-debug instead of simply
grails. For example, you want to debug test
Just type command in command console:
Then go to Netbeans and select from menu
grails-debug test-app functional: SeleniumTest
Debug > Attach Debugger..., by default there is JPDA debugger, connector - SocketAttach, just enter your host and port (default is 5005, you can see yours in Grails console). Press
OK. And it should connect to Grails process, so it will stop on breakpoints. Easy.
One thing to notice is that if you want to evaluate some expression in debug mode, you should use Java, but not Groovy, at least now.