develooper Front page | perl.perl5.porters | Postings from February 2022

Pre-RFC: check if we're running under the debugger

Thread Next
From:
Ovid via perl5-porters
Date:
February 23, 2022 12:54
Subject:
Pre-RFC: check if we're running under the debugger
Message ID:
1646361623.789630.1645620886151@mail.yahoo.com
Hi all,

For those of us who use the debugger heavily, it's useful to know if we're running under the debugger. Unfortunately, the debugger doesn't natively export a way to do that. I've hacked on the debugger numerous times and I see that people do things like checking $DB::{single} or $INC{'perl5db.pl'}.

It would be nice to be able to do something like:

    if ( $ENV{PERL_DEBUGGER_RUNNING} ) {
        ...
    }

(A better name or approach is welcome)

This is a small itch to scratch, but it also seems very easy to scratch.

Thoughts? Or have I missed some documented, dead-trivial way of getting this information?

Best,
Ovid
-- 
IT consulting, training, specializing in Perl, databases, and agile development
http://www.allaroundtheworld.fr/. 

Buy my book! - http://bit.ly/beginning_perl

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About