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.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Modules
Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Shopify
Apple News