Welcome to the Monastery | |
PerlMonks |
Under the Perl debuggerby mpersico (Monk) |
on Mar 14, 2016 at 20:27 UTC ( [id://1157716]=perlquestion: print w/replies, xml ) | Need Help?? |
mpersico has asked for the wisdom of the Perl Monks concerning the following question:
What is the canonical method of determining if the currently executing code is running under a debugger?
I've tried checking
@{"_<$script"};which works in the script itself (where $script is set to $0) but when put that in a module, it doesn't work. FYI, I've searched various combinations for 'under perl debug' and come up empty, so if this is an obvious RTFM, my apologies. I could have sworn I'd seen this answered here before.
Back to
Seekers of Perl Wisdom
|
|