lib/overload.t See if operator overloading works
lib/perl5db.pl Perl debugging routines
lib/perl5db.t Tests for the Perl debugger
+lib/perl5db/t/break-on-dot Test script used by perl5db.t
lib/perl5db/t/breakpoint-bug Test script used by perl5db.t
lib/perl5db/t/disable-breakpoints-1 Test script used by perl5db.t
lib/perl5db/t/disable-breakpoints-2 Test script used by perl5db.t
}
# Debugger for Perl 5.00x; perl5db.pl patch level:
-$VERSION = '1.35';
+$VERSION = '1.36';
$header = "perl5db.pl version $VERSION";
my $dbline = shift;
# Make . the current line number if it's there..
- $line =~ s/^\.\b/$dbline/;
+ $line =~ s/^\.(\s|\z)/$dbline$1/;
# No line number, no condition. Simple break on current line.
if ( $line =~ /^\s*$/ ) {
}
}
-plan(20);
+plan(21);
my $rc_filename = '.perldb';
"'c line_num' is working properly.");
}
+{
+ rc(<<'EOF');
+&parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
+
+sub afterinit {
+ push (@DB::typeahead,
+ 'n',
+ 'n',
+ 'b . $exp > 200',
+ 'c',
+ q/print "Exp={$exp}\n";/,
+ 'q',
+ );
+
+}
+EOF
+
+ my $output = runperl(switches => [ '-d', ], stderr => 1, progfile => '../lib/perl5db/t/break-on-dot'); +
+ like($output, qr/
+ Exp=\{256\}
+ /msx,
+ "'b .' is working correctly.");
+}
+
END {
1 while unlink ($rc_filename, $out_fn);
}
--- /dev/null
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+my $exp = 1;
+for my $i (1 .. 20)
+{
+ $exp *= 2;
+}
b 237 ++$count237 < 11
b 33 /pattern/i
+If the line number is C<.>, sets a breakpoint on the current line:
+
+ b . $n > 100
+
=item b [file]:[line] [condition]
X<breakpoint>
X<debugger command, b>
=over 4
-=item *
+=item * "b . COND" in the debugger has been fixed
-XXX
+Breaking on the current line with C<b . COND> was broken by previous work and
+has now been fixed.
=back