Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: how to force a stack trace

by Dallaylaen (Monk)
on Mar 13, 2013 at 18:18 UTC ( #1023277=note: print w/ replies, xml ) Need Help??


in reply to how to force a stack trace

Sometimes I use the following method for debugging hard to track warnings (there's actually a Log4perl-compatible object instead of print there, use whatever fits you):

use Carp; local $SIG{__WARN__} = sub { print( Carp::longmess (shift) ); };

This is a "trick" however and should be agreed upon by the rest of the team. See also this node for sigwarn/sigdie explanation.


Comment on Re: how to force a stack trace
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-08 06:41 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 (94 votes), past polls