in reply to Re^2: Plack::Middleware::StackTrace missing frame
in thread Plack::Middleware::StackTrace missing frame

No change, but thanks for the thought.

Well, then show some code, like 10-20 lines worth

  • Comment on Re^3: Plack::Middleware::StackTrace missing frame

Replies are listed 'Best First'.
Re^4: Plack::Middleware::StackTrace missing frame
by Anonymous Monk on Apr 30, 2015 at 02:23 UTC

    I think I figured it out. I was loading the HTTPExceptions middleware too. That seems to catch the exception and even though it rethrows it, StackTrace then skips it.

    Test code:

    use strict; use Plack::Builder; { package MyApp; sub please_die { die "egad" } } my $app = sub { MyApp->please_die; [200, ['Content-type' => 'text/plain'], ['hello']] }; builder { enable 'StackTrace'; # enable 'HTTPExceptions', rethrow => 1; $app; };