breakpoint bug in the debugger
[email protected] (Conor) Tue, 31 May 2011 18:20:32 -0700
| Newsgroups | perl.debugger |
|---|---|
| Message-ID | <[email protected]> |
--0015174791b8be931904a49c53d0 Content-Type: multipart/alternative; boundary=0015174791b8be930704a49c53ce --0015174791b8be930704a49c53ce Content-Type: text/plain; charset=ISO-8859-1 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 --0015174791b8be930704a49c53ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Not exactly a high priority bug, but I found that if you set a breakpoint o= n a line where a 'use' statement exists, the breakpoint will show a= s set and the debugger won't complain:<div><br></div><div><div><div> $ perl -d <a href=3D"http://breakpoint-bug.pl">breakpoint-bug.pl</a></div><= div><br></div><div>Loading DB routines from <a href=3D"http://perl5db.pl">p= erl5db.pl</a> version 1.32</div><div>Editor support available.</div><div><b= r> </div><div>Enter h or `h h' for help, or `man perldebug' for more h= elp.</div><div><br></div><div>main::(<a href=3D"http://breakpoint-bug.pl:7"= >breakpoint-bug.pl:7</a>):</div><div>7: =A0 =A0 =A0print "hello!\n&quo= t;;</div> <div>=A0 DB<1> b 9</div><div>=A0 DB<2> v</div><div>4: =A0 =A0 = =A0use strict;</div><div>5: =A0 =A0 =A0use warnings;</div><div>6=A0</div><d= iv>7=3D=3D> =A0 =A0print "hello!\n";</div><div>8=A0</div><div>= 9:b =A0 =A0 use Data::Dumper;</div> <div>10=A0</div><div>11: =A0 =A0 print "goodbye!\n";</div><div>12= =A0</div><div>13: =A0 =A0 exit 0;</div><div>=A0 DB<2>=A0</div></div><= /div><div><br></div><div><br></div><div>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' statement= s at the beginning of the script), but I figured it was worth a mention.</d= iv> <div><br></div><div>I couldn't figure out how to actually file a bug at= <a href=3D"http://rt.perl.org">http://rt.perl.org</a>=A0and=A0<a href=3D"h= ttp://search.cpan.org/~jesse/perl-5.14.0/lib/perl5db.pl">http://search.cpan= .org/~jesse/perl-5.14.0/lib/perl5db.pl</a>=A0didn'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.=A0</div> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><d= iv><br></div><div>-Conor</div> --0015174791b8be930704a49c53ce-- --0015174791b8be931904a49c53d0 Content-Type: application/octet-stream; name="breakpoint-bug.pl" Content-Disposition: attachment; filename="breakpoint-bug.pl" Content-Transfer-Encoding: base64 X-Attachment-Id: f_godl4wbr0 IyEvdXNyL2Jpbi9wZXJsCiMgYnJlYWtwb2ludC1idWcucGwKCnVzZSBzdHJpY3Q7CnVzZSB3YXJu aW5nczsKCnByaW50ICJoZWxsbyFcbiI7Cgp1c2UgRGF0YTo6RHVtcGVyOwoKcHJpbnQgImdvb2Ri eWUhXG4iOwoKZXhpdCAwOwo= --0015174791b8be931904a49c53d0--