in reply to Debugging DESTROY calls in forking application
If you are using the debugger you could trace function calls or add watch expressions.
See perldebguts perldebug
Or you use the INIT° phase of your main application to dive into every namespace to monkey patch the sub DESTROY with a wrapper.
See perlmod
Or ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) but I'd try the END phase first, if it's not too late. Like this the overhead is reduced.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Debugging DESTROY calls in forking application
by cavac (Prior) on Mar 10, 2020 at 14:11 UTC | |
by LanX (Saint) on Mar 10, 2020 at 14:20 UTC | |
by cavac (Prior) on Mar 10, 2020 at 14:42 UTC | |
by LanX (Saint) on Mar 10, 2020 at 15:30 UTC |