1Dancer::Handler::Debug(U3s)er Contributed Perl DocumentatDiaonncer::Handler::Debug(3)
2
3
4

NAME

6       Dancer::Handler::Debug - a debug handler for easy tracing
7

VERSION

9       version 1.3513
10

DESCRIPTION

12       When developing a Dancer application, it can be useful to trace
13       precisely what happen when a query is processed. This handler is here
14       to provide the developer with a way to easily run the dancer
15       application with the Perl debugger.
16
17       This handler will process only one query, based on the arguments given
18       on the command line, which must follow the pattern
19
20           <verb> <path> <parameter segment> <env variable> <even variable>
21

USAGE

23           # in bin/app.pl
24           set apphandler => 'Debug';
25
26           # then, run the app the following way
27           perl -d bin/app.pl GET '/some/path/to/test'
28
29           # with arguments
30           perl -d bin/app.pl GET '/some/path/to/test' 'with=parameters&other=42'
31
32           # with environment variables
33           perl -d bin/app.pl GET '/some/path/to/test' '' HTTP_X_REQUESTED_WITH=XMLHttpRequest SERVER_NAME=fake
34

AUTHORS

36       Dancer contributors
37

AUTHOR

39       Dancer Core Developers
40
42       This software is copyright (c) 2010 by Alexis Sukrieh.
43
44       This is free software; you can redistribute it and/or modify it under
45       the same terms as the Perl 5 programming language system itself.
46
47
48
49perl v5.30.1                      2020-02-05         Dancer::Handler::Debug(3)
Impressum