-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
executable file
·136 lines (89 loc) · 3.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
NAME
Dancer::Plugin::DebugToolbar - A debugging toolbar for Dancer web
applications
VERSION
Version 0.016
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
This setting 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.
* templates
Templates screen. Displays the names of rendered templates and lets
you inspect the data that was passed to them.
* 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.
path_prefix
The "path_prefix" setting allows you to change the URL path prefix that
the toolbar uses to access its resources (e.g., CSS and JavaScript
files). By default, it's set to "/dancer-debug-toolbar".
Example:
path_prefix: /toolbar-files
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-DebugToolb
ar>. 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:
* RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Plugin-DebugToolbar
>
* AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Dancer-Plugin-DebugToolbar>
* CPAN Ratings
<http://cpanratings.perl.org/d/Dancer-Plugin-DebugToolbar>
* Search CPAN
<http://search.cpan.org/dist/Dancer-Plugin-DebugToolbar/>
ACKNOWLEDGEMENTS
Uses icons from the Fugue Icons set (<http://p.yusukekamiyamane.com/>).
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.