Plack::Middleware::BetterStackTrace - Displays better stack trace when your app dies
enable 'BetterStackTrace', application_caller_subroutine => 'Amon2::Web::handle_request';
This middleware catches exceptions (run-time errors) happening in your
application and displays nice stack trace screen. The stack trace is
also stored in the environment as a plaintext and HTML under the key
plack.stacktrace.html respectively, so
that middleware futher up the stack can reference it.
You're recommended to use this middleware during the development and use Plack::Middleware::HTTPExceptions in the deployment mode as a replacement, so that all the exceptions thrown from your application still get caught and rendered as a 500 error response, rather than crashing the web server.
Catching errors in streaming response is not supported.
Copyright (C) Tasuku SUENAGA a.k.a. gunyarakun.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Copyright (C) 2012 Charlie Somerville
Tasuku SUENAGA a.k.a. gunyarakun firstname.lastname@example.org
- REPL - JSON response