Debug ToolsΒΆ

To enable Dari debug tools, add the following to your web.xml file:

<filter>
    <filter-name>ApplicationFilter</filter-name>
    <filter-class>com.psddev.dari.db.ApplicationFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>ApplicationFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>ERROR</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    <dispatcher>REQUEST</dispatcher>
</filter-mapping>

You can configure the Dari debug tools in the Tomcat context.xml file, where options are expressed as name-value pairs:

<Environment name="PRODUCTION" type="java.lang.Boolean" value="{true|false}" override="false" />
<Environment name="dari/debugUsername" type="java.lang.String" value="{username}" override="false" />
<Environment name="dari/debugPassword" type="java.lang.String" value="{password}" override="false" />
<Environment name="dari/debugRealm" type="java.lang.String" value="{realURL}" override="false" />
Key: PRODUCTION Type: java.lang.Boolean
Enables or disables production mode (the key must be expressed in all caps). When production mode is enabled, the dari/debugUsername and dari/debugPassword name-value pairs are required to use the Dari debug tools.
Key: dari/debugUsername Type: java.lang.String
The user name required to access the Dari debug tools. If not set, then credentials are not required unless the PRODUCTION key is set to true.
Key: dari/debugPassword Type: java.lang.String
The password required to access the Dari debug tools. If not set, then credentials are not required unless the PRODUCTION key is set to true.
Key: dari/debugRealm Type: java.lang.String
If you define a protection space for the Dari debug tools, set the realm value.