Re: Q: How best to detect running inside the debugger

[email protected] ((Peter Scott)) 31 Oct 2004 15:31:30 -0000
Newsgroups perl.debugger
Organization Pacific Systems Design Technologies
Message-ID <[email protected]>
In article <[email protected]>,
 [email protected] (Tim Meadowcroft) writes:
>What's the best/recommended way for a script to detect when it's running
>under the debugger ?

I usually do

        ... if defined &DB::DB

for the prettiness of it.

-- 
Peter Scott
http://www.perldebugged.com/
*** NEW *** http://www.perlmedic.com/