Using perlbrew to create perl with debugging symbols

I am trying to find a segmentation error that I could isolate with only a few lines of code in different versions of Perl. I use perlbrew to manage different versions for development and testing, but it does not create perl using debugging symbols, so using gdb to parse the kernel dump file is pretty useless.

So what is the best way to create a perlbrew assembly with debugging symbols turned on. And if possible, I would like it to be a separate perl, which I could switch to, instead of overriding the standard for the same version.

+7
source share
1 answer
perlbrew install -v 5.14.2 --as=5.14.2d -DEBUGGING=-g 

( --as puts it under a different name, so you can save existing assemblies).

There is also the following, which includes the above and so on, which you do not need:

 perlbrew install -v 5.14.2 --as=5.14.2d -DEBUGGING=both 

See INSTALL in the root directory of the Perl distribution.

+11
source

All Articles