Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I used it to debug C code, although not lately. It is great for displaying structures.
    For Perl I prefer the '-d' debugging.
    Are you adding debugging of XS modules?
    If so I have a neat trick to debug using gdb that I learned from muppet on the perl-xs list.
    I haven't tried it with ddd, I should test it someday.
    • I won't cover XS debugging since I'm not covering XS stuff (leaving that to Extending and Embedding Perl), but what's your trick? :)
      • Here are the instructions I got. This has saved me a lot of debugging time.

        #################################################

        set the env var PASTHRU_INC when compiling your extension:

              $ # turn on debugging symbols, turn off optimization (to
              $ # prevent out-of-order execution that makes debugging
              $ # rather confusing)
              $ export PASTHRU_INC='-Wall -g -O0'

        then you can run your program in gdb and be taken to the exactly right
        spot