Syntactic Confectionery Delight | |
PerlMonks |
Re: Debugging DESTROY calls in forking applicationby LanX (Saint) |
on Mar 10, 2020 at 11:25 UTC ( [id://11114069]=note: print w/replies, xml ) | Need Help?? |
Perl is so dynamic, there are a variety of options coming to mind, which depend on details only you know. 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 °) but I'd try the END phase first, if it's not too late. Like this the overhead is reduced.
In Section
Seekers of Perl Wisdom
|
|