GSP Debugging tip – showSource
There are times when we have an !!Exception!! which looks like
[code]
grails_app_views_non_crashable_page_gsp:29
[/code]
seems like our non crashable page just crashed, and looking at line 29 in our gsp is of no avail, and we just end up thinking maybe x or maybe y messed up.
The trick is simple, simply in your URL , add the following :
[code]
http://myBulletProofServer:8080/xx/XXx/nonCrashablePage?showSource=true
[/code]
and this will give you the compiled groovy code for the gsp. There you can point out to line #29 and shout “Gotcha!”
Regards
Avinash Verma