Debugging a GSP

This is how to view the compiled source of a GSP. Since the stack trace may appear to be referencing the actual gsp but in reality is talking about its compiled source. Look to see in the stack trace if its referencing gsp_name.groovy instead of the gsp.

Viewing a compiled GSP source
Viewing the compiled gsp groovy only works when performing a grails run-app this will not work when running a compiled war from a server. In order to view the source you will need to add "&showSource" to your url string. http://localhost:8080/AppName/controller/function?param1=X&param2=Y&showSource