develooper Front page | perl.perl5.porters | Postings from October 2003

How to tell if Perl has -DDEBUGGING?

Thread Next
From:
Steve Hay
Date:
October 24, 2003 08:24
Subject:
How to tell if Perl has -DDEBUGGING?
Message ID:
3F9944A1.2080402@uk.radan.com
Is there any way for a Perl module to tell that it is being run by a 
Perl that was built with -DDEBUGGING enabled?

I can put a "#ifdef DEBUGGING ... #endif" block in the module's XS to 
tell if the Perl that the module is built with is a DEBUGGING Perl, but 
that won't catch the case where somebody builds the module with a 
non-DEBUGGING Perl and then moves the module (.pm and loadable object) 
into a DEBUGGING Perl's library tree.

Thanks,
- Steve


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