CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
How to step through a module I'm using with debug?

 



bongu
New User

Feb 27, 2008, 2:54 PM

Post #1 of 1 (840 views)
How to step through a module I'm using with debug? Can't Post

 hello,

I'd like to step through the code of imported subroutines of CPAN modules while debugging. For example, let's say I have:
--------example.pl---------
#!/usr/bin/perl

use Foo::Bar;

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?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives