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

Re^2: Forcing stack trace?

by Anonymous Monk
on Sep 21, 2007 at 11:56 UTC ( #640341=note: print w/ replies, xml ) Need Help??


in reply to Re: Forcing stack trace?
in thread Forcing stack trace?

From what I understand, stack trace can be printed if we use the Carp module (e.g. confess). But suppose other people's code just use die() and not use Carp at all?


Comment on Re^2: Forcing stack trace?
Replies are listed 'Best First'.
Re^3: Forcing stack trace?
by adrianh (Chancellor) on Sep 21, 2007 at 12:21 UTC
    You can override the global __DIE__ handler something like (untested):
    use Carp; $SIG{ __DIE__ } = sub { Carp::confess( @_ ) };

    See perlvar for more info on %SIG.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-29 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (268 votes), past polls