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

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; };