Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Interceptors > DebuggingInterceptor |

Apache Struts 2 Documentation
DebuggingInterceptor
Edit Page Browse Space Add Page Add News
Added by Ted Husted, last edited by Don Brown on Dec 29, 2006 (view change)

Provides several different debugging screens to provide insight into the data behind the page.

This interceptor only is activated when devMode is enabled in struts.properties. The 'debug' parameter is removed from the parameter list before the action is executed. All operations occur before the natural Result has a chance to execute.

## Parameters

- `xml` - Dumps the parameters, context, session, and value stack as an XML document.
- `console` - Shows a popup 'OGNL Console' that allows the user to test OGNL expressions against the value stack. The XML data from the 'xml' mode is inserted at the top of the page.
- `command` - Tests an OGNL expression and returns the string result. Only used by the OGNL console.

## Example

http://localhost:8080/Welcome.action?debug=xml