Last updated by dbwhitaker
4 years ago
Debug Plugin
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:- 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