I recently installed perl-5.8.8 on my new Intel Mac, along with a
bunch of CPAN modules and now I'm running into a problem with the
debugger. Namely, I can't set a breakpoint after a call to is() in
test scripts that use Test::More. I initially reported this as a bug
in Test-Simple (http://rt.cpan.org/Ticket/Display.html?id=24245),
upon which I was advised to filed a report to p5p using perlbug,
which I have done.
I was wondering if anyone else is seeing this, and if anyone has
ideas for workarounds. It's crippling to not be able to debug my test
scripts.
I built my perl-5.8.8 using ...
./Configure -de -Dprefix=/usr/local/perl-5.8.8 -
Dperladmin=<[EMAIL PROTECTED]> -Dcf_email=<[EMAIL PROTECTED]>
... and tried upgrading Test::More to 0.66.
Steps to reproduce the problem:
1. Save the following 10-line script to debugger_bug.pl:
------------------------
#!/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;
------------------------
2. Type: perl -d debugger_bug.pl
3. At the perl debugger prompt, type: c 8
This should execute up to line 8 and stop, like this ...
DB<1> c 8
Hello world!
ok 1 - is()
main::(test_debugger_bug.pl:8): print "Can't stop in debugger before
executing this line!\n";
DB<2>
... but in my case, it runs right over the breakpoint ...
DB<1> c 8
Hello world!
ok 1 - is()
Can't stop in debugger before executing this line!
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<2>
Same result if in step 3 you type 'b 8' followed by 'c'.
--
Ray Zimmerman
Senior Research Associate
428-B Phillips Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645