Home > Guides > Core Developers Guide > Debugging |

Apache Struts 2 Documentation
Debugging
Edit Page Browse Space Add Page Add News

Modern IDEs provide excellent support for debugging. In addition, the framework provides support for inspecting framework-specific objects at runtime.

The Debugging Interceptor provides three debugging modes to provide insight into the data behind the page. The `xml` mode formats relevant framework objects as an XML document. The `console` mode provides a OGNL command line that accepts entry of runtime expressions, and the `browser` mode adds an interactive page that display objects from the Value Stack.

To use the debugging, first be sure that `struts.devMode` is set to `true` is enabled through the struts.properties file or `struts.xml` file, like:

Then, whenever a page needs debugging, add `?debug=xml` or `?debug=console` or `?debug=browser` to the URL.

Icon

For `?debug=xml` use Internet Explorer or an IE tab in FireFox

Icon

For `?debug=console` you may need to relax any popup blockers

## Next: Development Mode