NAME Plack::Middleware::Debug - display information about the current request/response SYNOPSIS # app.psgi use Plack::Builder; my $app = sub { return [ 200, [ 'Content-Type' => 'text/html' ], [ '
Hello World' ] ]; }; builder { enable 'Debug'; $app; }; DESCRIPTION The debug middleware offers a configurable set of panels that displays information about the current request and response. The information is generated only for responses with a status of 200 ("OK") and a "Content-Type" that contains "text/html" and is embedded in the HTML that is sent back to the browser. To enable the middleware, just use Plack::Builder as usual in your ".psgi" file: use Plack::Builder; builder { enable 'Debug' panels => [ qw(DBITrace PerlConfig) ]; $app; }; If you pass a list of panel base names to the "enable()" call, only those panels will be enabled. If you don't pass an argument, the default list of panels - "Environment", "Response", "Timer" and "Memory" - will be enabled. PANELS "DBITrace" Display DBI trace information. See Plack::Middleware::Debug::DBITrace. "Environment" Displays the PSGI environment from the request. See Plack::Middleware::Debug::Environment. "Memory" Displays memory usage before the request and after the response. See Plack::Middleware::Debug::Memory. "ModuleVersions" Displays the loaded modules and their versions. See Plack::Middleware::Debug::ModuleVersions. "PerlConfig" Displays the configuration information of the Perl interpreter itself. See Plack::Middleware::Debug::PerlConfig "Response" Displays the status code and response headers. See Plack::Middleware::Debug::Response. "Timer" Displays how long the request took. See Plack::Middleware::Debug::Timer. BUGS AND LIMITATIONS No bugs have been reported. Please report any bugs or feature requests through the web interface at