Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > debugging multi-file scripts using perldb

Reply
Thread Tools

debugging multi-file scripts using perldb

 
 
Gaurav Shah
Guest
Posts: n/a
 
      10-27-2003
I'm using perldb to debug scripts that call functions from many
different files, which are included with the "require" command.

How do I set a breakpoint in a function, or at a line, that is found
in a file other than the main one?

Thanks in advance,

-Gaurav Shah.
 
Reply With Quote
 
 
 
 
Peter Scott
Guest
Posts: n/a
 
      10-28-2003
In article <> ,
(Gaurav Shah) writes:
>I'm using perldb to debug scripts that call functions from many
>different files, which are included with the "require" command.
>
>How do I set a breakpoint in a function, or at a line, that is found
>in a file other than the main one?


If the function has already been compiled, 'b funcname' will do it.
Of course, it may be in another package and hence 'b somepack::funcname'.

To switch to another source file to use its line numbers, use the
'f' command.

If the function hasn't been compiled yet, you can use
'b postpone funcname' to set a breakpoint on it when it is eventually
loaded.

--
Peter Scott
http://www.perldebugged.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using perldb in emacs newsgroupie2003@yahoo.dk Perl Misc 0 08-08-2005 09:55 AM
.perldb interface to DDD Roman Kaganovich Perl Misc 0 07-28-2004 10:16 AM
.perldb interface to DDD Roman Kaganovich Perl Misc 0 07-27-2004 06:52 AM
perldb history dump? bill Perl Misc 2 02-28-2004 04:00 AM
How to set hist buf size in perldb? bill Perl Misc 1 02-26-2004 06:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57