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

How to tell if Perl has -DDEBUGGING?

Thread Next
Steve Hay
October 24, 2003 08:24
How to tell if Perl has -DDEBUGGING?
Message ID:
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.

- Steve

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About