Debug Plugin
Dependency :
compile ":debug:1.0.2"
Summary
Adds useful debug output tools to your app.
Description
This plugin provides code that runs only in development mode - unless you specifically override it in production in the event of needing some emergency debug!To install: grails install-plugin debugOut of the box, it provides the following:
And the extremely-ugly-work-in-progress control panel is here:
Debug code only runs in development mode, unless you have set the production override property in Config:If you set that value to anything other than a blank string, it will keep the debug filters running in production and hence you can log any of the debug info.During development you can also suppress debug if the request info that is always logged is annoying you:You can then configure which categories of debug info are collated and logged:Where CATEGORY can be anything - you can log your own variables and categories - but by default the following are supported:
- logging of request processing start and end, with request processing during
- configurable logging of various information including the model variables available, request parameters and headers, request attributes, session variables, system information such as free RAM
- a "control panel" at /debug/ that displays useful application status information and all the information that is logged, but within the browser
- a taglib for dumping out any category of debug data into a GSP you are debugging
filters.DebugFilters Request received from 0:0:0:0:0:0:0:1%0 service.DebugService Request parameters action = info filters.DebugFilters Total request time: 1242ms

Configuration
Logging must be configured to level "info" for logger grails.app.filters:log4j.logger.grails.app.filters='info'
grails.debug.productionOverride=anything
grails.debug.enabled='false' // only 'false' will turn it off currently in 1.0
grails.debug.CATEGORY=false // or true
- system - System info like memory and java VM version
- stats - Request statistics
- params - Request parameters
- headers - Request headers
- controller - Controller info eg controller name and action selected by url mappings
- session - Session attributes
- requestAttributes - Request attributes
- model - contents of the model