PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:

DB<4> s URI::CODE(0x7f8b0e83b600)(/usr/lib/perl5/site_perl/5.8.8/URI.pm:3): 3: use strict; DB<4> l 3==> use strict; DB<4> l 3==> use strict; DB<4> l 3==> use strict; DB<4> l 3==> use strict; DB<4> s URI::CODE(0x7f8b0e83b600)(/usr/lib/perl5/site_perl/5.8.8/URI.pm:3): 3: use strict; DB<4> n URI::CODE(0x7f8b0e83b600)(/usr/lib/perl5/site_perl/5.8.8/URI.pm:3): 3: use strict; DB<4> n

What seems strange is that it doesn't increment the line no for consecutive l, and I need to press n twice to make it step forward.

I've met this kind of issue many times, is there anyone that knows the reason?

Replies are listed 'Best First'.
Re: What's the reason for such kind of behavior of perl5db.pl?
by chrestomanci (Priest) on Sep 21, 2011 at 09:10 UTC

    Have you changed the setup of the perl debugger so as to set a break point before code is compiled?

    I have seen similar strange behaviour by setting a break point in a begin block:

    BEGIN: { $DB:single = 1; }; # Rest of the script here

      No special settings,

      it's started simply by perl -d