NAME

Dancer::Plugin::DebugToolbar - A debugging toolbar for Dancer web applications

VERSION

Version 0.014

SYNOPSIS

Add the plugin to your web application:

use Dancer::Plugin::DebugToolbar;

And enable it in the configuration file, preferably in the development environment (environments/development.yml):

plugins:
    DebugToolbar:
        enable: 1

DESCRIPTION

Dancer::Plugin::DebugToolbar allows you to add a debugging toolbar to your Dancer web application.

CONFIGURATION

To enable and configure the plugin, add its settings to the Dancer configuration file, under plugins:

plugins:
    DebugToolbar:
        enable: 1
        ...

You can do this either in the main configuration file (config.yml), or in the configuration file for a specific environment (under environments/). Normally, you'll want to enable the toolbar for the development enviroment (environments/development.yml).

The available configuration settings are described below.

enable

Enables the debugging toolbar.

Example:

enable: 1

show

The show setting lets you choose which information will be provided by the debugging toolbar.

Example:

show:
    database: 1
    routes: 1

The available options are:

  • data

    Data inspection screen. Allows you to inspect the config, request, session, and vars data structures.

  • database

    Database information screen. Shows DBI trace and queries log.

  • routes

    Routes screen. Shows all the routes defined in the application, and indicates the matching routes.

If the show setting is not defined, the data and routes screens are displayed by default.

AUTHOR

Michal Wojciechowski, <odyniec at cpan.org>

BUGS

Please report any bugs or feature requests to bug-dancer-plugin-debugtoolbar at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-DebugToolbar. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Plugin::DebugToolbar

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Michal Wojciechowski.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.