in reply to Re^2: How to print the backtrace in a "catch" block?
in thread How to print the backtrace in a "catch" block?
You will need to replace the die in sub2 and/or sub3 with a call to confess to get at the stack trace. Maybe you can install a $SIG{__DIE__} handler that stashes away the stack trace for later retrieval. I think that Carp::Always does this, but I've never used it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to print the backtrace in a "catch" block?
by Anonymous Monk on Jan 16, 2012 at 17:15 UTC | |
by tobyink (Canon) on Jan 16, 2012 at 17:25 UTC | |
|
Re^4: How to print the backtrace in a "catch" block?
by Marshall (Canon) on Jan 16, 2012 at 17:20 UTC | |
|
Re^4: How to print the backtrace in a "catch" block?
by Anonymous Monk on Jan 16, 2012 at 16:31 UTC |