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>

The following table lists context.xml keys for configuring a username and password to access the debugging tools in a production environment.

Key Type Description
dari/debugUsername java.lang.String Username required to access the Dari debug tools. If Brightspot is in development mode, this key is not necessary and any user can access the Dari debug tools.
dari/debugPassword java.lang.String Password required to access the Dari debug tools. If Brightspot is in development mode, this key is not necessary and any user can access the Dari debug tools.
dari/debugRealm java.lang.String If you define a protection space for the Dari debug tools, set the realm value.

The following snippet is an example of enabling debugging on a production instance of Brightspot. When a user goes to the URL http://www.example.com/_debug, the browser prompts for the username and password, and validates the login against myusername and mypassword.

<Environment name="dari/debugUsername" type="java.lang.String" value="myusername" />
<Environment name="dari/debugPassword" type="java.lang.String" value="mypassword" />

See also: