Brightspot CMS Developer Guide

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:

Previous Topic
Database configuration
Next Topic
Storage item configuration
Was this topic helpful?
Thanks for your feedback.
The elements that get you up and running in a matter of days, from pre-built content types, to modules, to landing pages.

Content types
Modules
Landing pages
Everything you need to manage and administer content within Brightspot CMS, including plug-and-play integrations.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting and administering code on the Brightspot platform, including integrations requiring developer support to use.

Field types
Content modeling
Rich-text elements
Images