Hello all,
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