Debugging GSP?

Is it possible to step through and debug Grails GSP code using IntelliJ 7 + JetGroovy?

I have attempted to set breakpoints in sample GSP code, but the breakpoint shows the following error when I hover over it:

"Warning: Breakpoint does not belong to any class"

Attaching a debugger to a Tomcat deployment or the default Grails Jetty deployment results in the breakpoint being ignored. Breakpoints in plain Groovy/Java code work like a charm, as expected.

Any insight would be appreciated.

~Stephen Mucher

1 comment
Avatar
Eugene Vigdorchik
Comment actions Permalink

GSP does not contain line number mapping, so it cannot be debugged in principle. Once Grails team supports jsr 45 in gsp, it won't be too difficult to add debugging to jetgroovy.

0

Please sign in to leave a comment.