Feb 27, 2008, 2:54 PM
Post #1 of 1
How to step through a module I'm using with debug?
I'd like to step through the code of imported subroutines of CPAN modules while debugging. For example, let's say I have:
my $tmp = 0;
if I run:
perl -d example.pl, it starts at the 'my $tmp = 0;' line. Let's say there's a lot of auto-magical things that happen when using Foo::Bar that I'd like to step through. And let's say the Foo::Bar module is from CPAN, which is why I'm not familar with it. How would I do that?