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

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

Thread Previous | Thread Next
From:
Ovid via perl5-porters
Date:
February 23, 2022 13:13
Subject:
Re: Pre-RFC: check if we're running under the debugger
Message ID:
1378260607.789823.1645622006206@mail.yahoo.com
On Wednesday, 23 February 2022, 14:03:47 CET, Leon Timmermans <fawaka@gmail.com> wrote:

> > It would be nice to be able to do something like:
> > 
> >     if ( $ENV{PERL_DEBUGGER_RUNNING} ) {
> >         ...
> >     }
> 
> You can check if $^P is not 0?

I never knew about that particular variable. If it's stable and guaranteed (I would assume yes to both), it would be nice to add that to the perldebug POD (at least on v5.26 I don't see it in there).

If that's considered the best canonical approach, I'm happy to submit a PR.

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 Previous | 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