Dashboard > WebWork > ... > Interceptors > Debugging Interceptor
  WebWork Log In View a printable version of the current page.  
  Debugging Interceptor
Added by tm_jee, last edited by tm_jee on Jan 09, 2007  (view change)
Labels: 
(None)

Provides several different debugging screens to provide insight into the data behind the page. The value of the 'debug' request parameter determines the screen.

This interceptor only is activated when devMode is enabled in webwork.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.

The debug interceptor will place the Ognl stack into the session. This can cause problems when the session is attempted to be serialised (such as when using a session based clustering service, when Tomcat startsup/shutsdown etc.) as your stack may contain non-serializable objects such as services or loggers (in particular log4j Logger which does not implement serializable).

Parameters

The value of the 'debug' request parameter determines the screen.

  • 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.

Extending the Interceptor

There's no intended extension points

Examples

<action ...>
   <interceptor-ref name="debugging" />
   ....
</action>

Example showing <interceptor-ref name="debuging" /> should be<interceptor-ref name="debugging" /> with double 'g'. 

I couldn't change it since it was pulled out of the source code API directly... Just wanted leave a comment so that someone who's new to this wouldn't pull his hair out...

Posted by Timothy Wonil Lee at Dec 17, 2006 23:35 | Permalink

Thx for the heads-up Tim. Changed it in cvs. Wondering why it doesn't change in confluence, any ideas?

Posted by tm_jee at Dec 24, 2006 22:35 | Permalink
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators