in reply to Capturing stack trace in eval
You can override CORE::GLOBAL::die to throw an exception object (see the die documentation) which captures the call stack at that moment, instead of just a string.
Which is the only reliable way I've found to do it.
edit: don't try to use the $SIG{__DIE__} for this. It won't work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Capturing stack trace in eval
by ikegami (Patriarch) on Oct 07, 2009 at 20:26 UTC | |
by Joost (Canon) on Oct 07, 2009 at 21:31 UTC | |
Re^2: Capturing stack trace in eval
by moritz (Cardinal) on Oct 07, 2009 at 20:00 UTC | |
by Joost (Canon) on Oct 07, 2009 at 20:22 UTC |
In Section
Seekers of Perl Wisdom