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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Used it for debugging C (Score:1)
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.
Reply to This
Re: (Score:2)
Re: (Score:1)
#################################################
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