Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Plack::Middleware::StackTrace missing frame

by Anonymous Monk
on Apr 30, 2015 at 01:54 UTC ( [id://1125190]=note: print w/replies, xml ) Need Help??


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

No change, but thanks for the thought.

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

    No change, but thanks for the thought.

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1125190]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-03-28 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found