New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl -d on bleadperl has non-functional b command #11444
Comments
From @shlomifCreated by @shlomifIn bleadperl (NOT perl-5.12.3) perl -d's "b" command does not appear See: http://www.nntp.perl.org/group/perl.perl5.porters/2011/06/msg173568.html Inline Patchdiff --git a/lib/perl5db.t b/lib/perl5db.t
index 4419136..f4f32da 100644
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -27,7 +27,7 @@ my $dev_tty = '/dev/tty';
}
}
-plan(9);
+plan(10);
sub rc {
open RC, ">", ".perldb" or die $!;
@@ -177,6 +177,32 @@ SKIP: {
is($output, '[$^X][done]', "taint");
}
+# Testing that we can set a breakpoint
+{
+ rc(<<'EOF');
+&parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
+
+sub afterinit {
+ push (@DB::typeahead,
+ 'b 6',
+ 'c',
+ q/do { use IO::Handle; STDOUT->autoflush(1); print "X={$x}\n"; }/,
+ 'c',
+ 'q',
+ );
+
+}
+EOF
+
+ my $output = runperl(switches => [ '-d', ], stderr => 1, progfile => '../lib/perl5db/t/breakpoint-bug');
+
+ like($output, qr/
+ X=\{Two\}
+ /msx,
+ "Can set breakpoint in a line.");
+}
+
+
# clean up.
diff --git a/lib/perl5db/t/breakpoint-bug b/lib/perl5db/t/breakpoint-bug
new file mode 100644
index 0000000..5ac9874
--- /dev/null
+++ b/lib/perl5db/t/breakpoint-bug
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+my $x = "One";
+
+$x = "Two";
+
+my $y = "Lambda";
+
+$x = "Four"; Perl Info
|
From @cpansproutOn Wed Jun 15 12:43:40 2011, shlomif@shlomifish.org wrote:
A binary search points to this commit: commit 6f83ef0 Create a lookup table for magic vtables from magic type, PL_magic_data. |
The RT System itself - Status changed from 'new' to 'open' |
From @shlomifOn Wed Jun 15 13:12:48 2011, sprout wrote:
PL_magic_data.
I ran git bisect just now and also got this exact git commit: |
From @cpansproutOn Wed Jun 15 13:30:20 2011, shlomif wrote:
http://www.nntp.perl.org/group/perl.perl5.porters/2011/06/msg173568.html
OK. I’ve fixed it. I’m just running tests.... |
From @cpansproutOn Wed Jun 15 12:43:40 2011, shlomif@shlomifish.org wrote:
I’ve just fixed this with commit f34d156. And your breakpoint patch (<201104172031.52919.shlomif@iglu.org.il>) has |
@cpansprout - Status changed from 'open' to 'resolved' |
From @cpansproutOn Wed Jun 15 21:59:51 2011, sprout wrote:
Oops. I missed a thank you. :-) Thank you for the breakpoint feature! |
Migrated from rt.perl.org#92906 (status was 'resolved')
Searchable as RT92906$
The text was updated successfully, but these errors were encountered: