Ok, found the answer after asking the question, its s Fudge or s main::Fudge

$ perl -d p5dbglob.pl . . . Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(p5dbglob.pl:8): Main( @ARGV ); DB<1> s main::Main(p5dbglob.pl:11): for my $dir ( @_ ){ DB<1> s main::Main(p5dbglob.pl:12): chdir $dir or die $!; DB<1> s main::Main(p5dbglob.pl:13): Fudge( $dir, glob '*' ); DB<1> s Fudge main::Main((eval 8)[C:/perl/5.14.1/lib/perl5db.pl:640]:3): 3: Fudge; DB<<2>> s main::Fudge(p5dbglob.pl:17): my $dir = shift; DB<<2>> s main::Fudge(p5dbglob.pl:18): my $count = @_; DB<<2>> q

Before that I also found you can exit the subroutine you stepped into with r

$ perl -d p5dbglob.pl . . . Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(p5dbglob.pl:8): Main( @ARGV ); DB<1> s main::Main(p5dbglob.pl:11): for my $dir ( @_ ){ DB<1> s main::Main(p5dbglob.pl:12): chdir $dir or die $!; DB<1> s main::Main(p5dbglob.pl:13): Fudge( $dir, glob '*' ); DB<1> s File::Glob::csh_glob(C:/perl/5.14.1/lib/MSWin32-x86-multi-thread/File/ +Glob.pm:78): 78: my $pat = shift; DB<1> r list context return from File::Glob::csh_glob: 0 'foo.txt' 1 'dum1.txt' 2 'dum2.txt' 3 'out.txt' 4 'p5dbglob.pl' main::Fudge(p5dbglob.pl:17): my $dir = shift; DB<1> s main::Fudge(p5dbglob.pl:18): my $count = @_; DB<1> q

Thanks


In reply to Re: perl5db - how to step into my sub without stepping into glob by Anonymous Monk
in thread perl5db - how to step into my sub without stepping into glob by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.