Not exactly a high priority bug, but I found that if you set a breakpoint on
a line where a 'use' statement exists, the breakpoint will show as set and
the debugger won't complain:

$ perl -d breakpoint-bug.pl

Loading DB routines from perl5db.pl version 1.32
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(breakpoint-bug.pl:7):
7:      print "hello!\n";
  DB<1> b 9
  DB<2> v
4:      use strict;
5:      use warnings;
6
7==>    print "hello!\n";
8
9:b     use Data::Dumper;
10
11:     print "goodbye!\n";
12
13:     exit 0;
  DB<2>


But, if you 'c' from line 7, you skip over the breakpoint on 9 as if it
wasn't there. It isn't a huge problem (and I really should keep all of my
'use' statements at the beginning of the script), but I figured it was worth
a mention.

I couldn't figure out how to actually file a bug at http://rt.perl.org and
http://search.cpan.org/~jesse/perl-5.14.0/lib/perl5db.pl didn't have the
usual 'View/Report Bugs' that most modules have. I'm happy to file a bug if
someone could point me in the right direction.

-Conor

Attachment: breakpoint-bug.pl
Description: Binary data

Reply via email to