clwolfe has asked for the wisdom of the Perl Monks concerning the following question:
I've been using the Perl debugger (perl -d) more and more lately, especially running it on test files to exercise modules. I often want to set a breakpoint in a file other than the current one, but I can't seem to figure that out. Any suggestions?
To clarify, suppose I have a test script try_it.pl, that calls methods in a OOP module Fragile, which in turn calls methods in Broken::Completely. When I run perl -d try_it.pl, I can step line by line, and set breakpoints by specifying a line within the current file (using b 123 for line 123), but I have to wait until I step into Fragile, and then step into Broken/Completely before setting a breakpoint in that file. I thus end up usually running the file at least twice - one pass just to set breakpoints, then restart using 'R', then run to next breakpoint using 'c'. Is there a better way?
Thanks,
Clinton
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Specifying a Filename in a Breakpoint in the Perl Debugger
by zwon (Abbot) on Jan 22, 2009 at 19:43 UTC | |
by clwolfe (Scribe) on Jan 22, 2009 at 21:24 UTC | |
Re: Specifying a Filename in a Breakpoint in the Perl Debugger
by clwolfe (Scribe) on Jan 27, 2009 at 03:55 UTC | |
by perlyogi (Acolyte) on Sep 04, 2011 at 06:49 UTC | |
by Anonymous Monk on May 24, 2013 at 10:16 UTC | |
Re: Specifying a Filename in a Breakpoint in the Perl Debugger
by targetsmart (Curate) on Jan 23, 2009 at 06:25 UTC |