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.
|
|---|