NAME

Plack::Middleware::StackTrace::LinkedSource - Adding links to library source codes in stacktrace

SYNOPSIS

    enable 'StackTrace::LinkedSource', lib => ['/your/project/lib', @INC];

DESCRIPTION

Plack::Middleware::StackTrace::LinkedSource provides stacktrace which includes links to library source code.

MIDDLEWARE CONFIGURATION

lib = ($lib || \@lib) > // [@INC]

library path

viewer = $code_ref_for_plack > // Plack::App::SourceViewer instance

source code viewer instance

view_root = $view_root > // '/source'

root of source code path

force = $bool > // undef

Force display the stack trace when an error occurs within your application and the response code from your application is 500. Defaults to off. By default, stack trace is showed under 'development' or no environment($ENV{PLACK_ENV}).

NOTE: This middleware pretends to do nothing in production environment without the force option. However, already have been loaded whether it is enable or not. If you wanted to avoid loading this module, you should turn off it by yourself.

see more configurations on Plack::Middleware::StackTrace

METHODS

prepare_app

call

REPOSITORY

Plack::Middleware::StackTrace::LinkedSource is hosted on github: http://github.com/bayashi/Plack-Middleware-StackTrace-LinkedSource

I appreciate any feedback :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Plack::Middleware::StackTrace

Plack::App::SourceViewer

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.