CGI::Carp::StackTrace - install a Devel::StackTrace::AsHTML error screen for your CGI app
use Sys::Hostname 'hostname'; my $IS_PRODUCTION; BEGIN { $IS_PRODUCTION = hostname() eq 'prod_server'; require CGI::Carp::StackTrace if not $IS_PRODUCTION; }
Add a modern error screen to your CGI application, like Plack::Middleware::StackTrace.
Uses CGI::Carp in conjunction with Devel::StackTrace::WithLexicals and Devel::StackTrace::AsHTML.
Devel::StackTrace
Devel::StackTrace::WithLexicals
Devel::StackTrace::AsHTML
CGI::Carp
Plack::Middleware::StackTrace
Rafael Kitover <rkitover@cpan.org>
Thanks to Dave Rolsky for Devel::StackTrace and Miyagawa for Devel::StackTrace::AsHTML.
Some code in this module is stolen from Miyagawa's Plack::Middleware::StackTrace.
To install CGI::Carp::StackTrace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Carp::StackTrace
CPAN shell
perl -MCPAN -e shell install CGI::Carp::StackTrace
For more information on module installation, please visit the detailed CPAN module installation guide.