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().