The debugger command b methodsets a breakpoint at the beginning of your routine.
DB<1> b foo
DB<2> &foo(12)
main::foo(foo.pl:2): my ($x) = @_;
DB<<3>> s
main::foo(foo.pl:3): $x += 3;
DB<<3>> s
main::foo(foo.pl:4): print "x = $x\n";
DB<<3>> _
Sometimes you may need to qualify the routine names with the package name.
DB<1> use MyModule
DB<2> b MyModule::MySubroutine
source
share