Friday 2 May 2008

Debugging Grails

Here are some of the tools that you can use to help debug problems that you are having with grails:

  • grails-debug: Instead of running just grails run-app you can use grails-debug run-app which will allow you to hook up your ide to grails and insert break points.
  • grails -Dgrails.full.stacktrace=true run-app: This should give you the full stack trace. It isn't always useful but when you have nothing to go on it is a place to start.
  • ?showSource = If you are in development mode and you have a gsp error you can use this command to figure out what the problem actually is.

No comments: