So that in future the break points take affect as soon as the target file is loaded. Otherwise the debugger hardly helps ...
main::(test.pl:7): Class->new->go;
DB<1> f Movie.pm
No file matching `Movie.pm' is loaded.
DB<2> b Movie.pm:10
Subroutine main::Movie not found.
I know Movie.pm
will be loaded and want to set a bp on its 10th line...
I get round problems like this by manually typing the 'use' line into the debugger.
DB<1> b LWP::Simple::get
Subroutine LWP::Simple::get not found.
DB<2> use LWP::Simple
DB<3> b LWP::Simple::get
DB<4>
Does that help?
Workaround: require
the module when the debugger starts. You can put stuff in your .perldb
rc file so you don't have to type/paste it every debugger session.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With