Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Specifying a Filename in a Breakpoint in the Perl Debugger

by clwolfe (Scribe)
on Jan 27, 2009 at 03:55 UTC ( #739097=note: print w/replies, xml ) Need Help??


in reply to Specifying a Filename in a Breakpoint in the Perl Debugger

And now to answer my own question...

Turns out the 'f' command will help. The 'h' docs says that it let you view the code in another file, but in fact it switches your whole context to the other files (not the execution point, of course). You can then easily say 'b 1024' or whatever to set a breakpoint at a particular line, then switch back using 'f' again.

So, in my example above, I might run the debugger on try_it.pl, then immediately type f lib/Broken/Completely, then b 1234 to set a breakpoint at line 1234, then switch back to try_it.pl with f try_it.pl.

Replies are listed 'Best First'.
Re^2: Specifying a Filename in a Breakpoint in the Perl Debugger
by perlyogi (Acolyte) on Sep 04, 2011 at 06:49 UTC
    Thanks clwolfe, that was a very useful piece of information
Re^2: Specifying a Filename in a Breakpoint in the Perl Debugger
by Anonymous Monk on May 24, 2013 at 10:16 UTC

    Thanks clwolfe. It works perfectly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739097]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2017-02-26 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.