vkon has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have non-debugging version of perl installed, and I want to build some XS module using Makefile.PL with DEBUGGING enabled.
I have an idea to step-walk XS, that is why I need debugging,
and also module crashes, so I need to see the stack :)

Thanks in advance for the useful advices.

Replies are listed 'Best First'.
Re: How to build DEBUG version of a perl module using Makefile.PL?
by Anonymous Monk on Mar 20, 2011 at 18:17 UTC
    You could try
    WriteMakefile( 'DEFINE' => '-DDEBUG',
    But it isn't recommended by compiler/os makers.

    You need to compile a debug version of perl and any library your XS links