GSP Debugging tip – showSource

31 / Oct / 2012 by avinash 0 comments

There are times when we have an !!Exception!! which looks like


grails_app_views_non_crashable_page_gsp:29

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 :


http://myBulletProofServer:8080/xx/XXx/nonCrashablePage?showSource=true

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

Tag -

FOUND THIS USEFUL? SHARE IT

Leave a comment -