Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 24245
Status: rejected
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: ZMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.66
Fixed in: (no value)



Subject: trouble debugging tests that use is()
When running tests that use is() in the Perl debugger, I am not able to stop the execution on lines after the first call to is(). I am using perl-5.8.8 on Mac OS X 10.4.8 (Intel). For example, in the simple 10-line script below, if I type 'c 8' at the debugger prompt to stop before the 2nd print statement, it runs through to the end of the script. Likewise if I use, 'b 8' to set a breakpoint, then 'c'. Commenting out line 7 with the call to is() allows me to break normally at line 8. ------------------------ #!/usr/bin/perl -w use strict; use Test::More tests => 1; print "Hello world!\n"; is(1, 1, 'is()'); print "Can't stop in debugger before executing this line!\n"; 1; ------------------------ I also noticed that if I use 'n' to step through one line at a time, it stops displaying the next line to be executed after the first call to is().
On Fri Jan 05 16:04:25 2007, ZMAN wrote: Show quoted text
> When running tests that use is() in the Perl debugger, I am not able > to stop the execution on > lines after the first call to is(). I am using perl-5.8.8 on Mac OS X > 10.4.8 (Intel). > > For example, in the simple 10-line script below, if I type 'c 8' at > the debugger prompt to stop > before the 2nd print statement, it runs through to the end of the > script. Likewise if I use, 'b 8' > to set a breakpoint, then 'c'. Commenting out line 7 with the call to > is() allows me to break > normally at line 8.
*snip* Show quoted text
> I also noticed that if I use 'n' to step through one line at a time, > it stops displaying the next > line to be executed after the first call to is().
Sorry, I can't replicate any of this though I've seen similar issues surrounding eval blocks which are used deep inside is(). I'm using 5.8.8 on OS X Intel 10.4.8 as well. The problem would likely be in the debugger anyway, not Test::More so there's little I can do about it. Report it to p5p with the perlbug utility. 0 windhund ~/tmp$ cat debugger.plx #!/usr/bin/perl -w use strict; use Test::More tests => 1; print "Hello world!\n"; is(1, 1, 'is()'); print "Can't stop in debugger before executing this line!\n"; 1; 0 windhund ~/tmp$ perl -dw debugger.plx Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. 1..1 main::(debugger.plx:6): print "Hello world!\n"; DB<1> c 8 Hello world! ok 1 - is() main::(debugger.plx:8): print "Can't stop in debugger before executing this line!\n"; DB<2>
Subject: Re: [rt.cpan.org #24245] trouble debugging tests that use is()
Date: Mon, 8 Jan 2007 09:35:58 -0500
To: bug-Test-Simple [...] rt.cpan.org
From: Ray Zimmerman <rz10 [...] cornell.edu>
On Jan 5, 2007, at 7:52 PM, Michael_G_Schwern via RT wrote: Show quoted text
> Sorry, I can't replicate any of this though I've seen similar issues > surrounding eval blocks which are used deep inside is(). I'm using > 5.8.8 on OS X Intel 10.4.8 as well. The problem would likely be in > the > debugger anyway, not Test::More so there's little I can do about it.
Hmmm ... interesting. I built my perl with ... ./Configure -de -Dprefix=/usr/local/perl-5.8.8 Did you use different configure options? Btw, just for kicks I tried the System perl (5.8.6) with Test::More 0.47 and it works just fine. Show quoted text
> Report it to p5p with the perlbug utility.
Will do. - Ray