summaryrefslogtreecommitdiff
path: root/lib/perl5db
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2011-12-10 13:35:41 +0200
committerRicardo Signes <rjbs@cpan.org>2011-12-29 07:34:22 -0500
commit8dc67a69bbd9b13d51094c853f28f1db5f08c3a7 (patch)
tree6d623edf08c86c87b0ae4ccd552f56dcb4f1c8f6 /lib/perl5db
parent7355df7e69464cc1b7c5ce29234ddbcddec74500 (diff)
downloadperl-8dc67a69bbd9b13d51094c853f28f1db5f08c3a7.tar.gz
perl -d: display lines inside subroutines.
This is another fix to the perl debugger while making sure that lines inside subroutines will be printed in the run-time display of the perl debugger: https://rt.perl.org/rt3/Ticket/Display.html?id=104820 .
Diffstat (limited to 'lib/perl5db')
-rw-r--r--lib/perl5db/t/with-subroutine17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/perl5db/t/with-subroutine b/lib/perl5db/t/with-subroutine
new file mode 100644
index 0000000000..b1d70fe8bb
--- /dev/null
+++ b/lib/perl5db/t/with-subroutine
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+my $x = 'hello world';
+
+print "$x\n";
+
+back();
+
+exit;
+
+sub back {
+ print "hello back\n";
+}
+