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