in reply to Re^2: Perl Install docs "Building a Debugging Perl" section could have a mistake that builds wrong debugging Perl
in thread Perl Install docs "Building a Debugging Perl" section could have a mistake that builds wrong debugging Perl

Hi hermida,

for beginners the INSTALL document is confusing indeed, I believe because of the complexity. I also had to read it several times to get a grasp.

In my case I think I confused Perl's 4 different debugging modes:

with the actual script configuration settings which allow a user to fine-tune system dependent settings. For example I tried to enable Perl's -D command line switch to debug command line regular expressions, which by default is not enabled. I confused it because of the DDEBUGGING mode and it's alias DEBUGGING which can be set either together or separately.

So in my case it was a case of enabling both debugging modes by running the configuration script with:

./Configure -des -Doptimize=-g -DEBUGGING=-g

which activates Perl's -D command line switch (by setting C debugging preprocessor macro with -DEBUGGING=-g) and to activate system debugging.

I also read the debugging part of my gcc manual (man gcc) for any system related settings which uses the same -g flag.
  • Comment on Re^3: Perl Install docs "Building a Debugging Perl" section could have a mistake that builds wrong debugging Perl
  • Download Code