Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I had a question on the perl inbuilt debugger. If I am in debugger mode and currently in module A and I need to set a breakpoint in another module, say B, how can I do this? I know that if I say "b subroutineName" This will set the breakpoint to the subroutineName function in module B. But if I need to set it to a particular line number (in B), can I do that?
  • Comment on Perl inbuilt debugger - setting a breakpoint in another module

Replies are listed 'Best First'.
Re: Perl inbuilt debugger - setting a breakpoint in another module
by Corion (Patriarch) on Mar 23, 2010 at 20:02 UTC

      So far neither thread mentions the method I am most likely to use (if I want a breakpoint other than at the start of a routine):

      l Broken::Module::routine # ... b 418

      The "f" command requires file paths, which can be quite a bit longer than module package names and may require you to look something up. So I almost always use "l" with a subroutine name instead of "f".

      - tye        

Re: Perl inbuilt debugger - setting a breakpoint in another module
by BrowserUk (Patriarch) on Mar 23, 2010 at 20:02 UTC
    b Your::Module::subroutine

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.