fc2e8ab
From 496f5ba57a43840a3c8ee61b21dc60d0c8bb5d52 Mon Sep 17 00:00:00 2001
fc2e8ab
From: Tony Cook <tony@develop-help.com>
fc2e8ab
Date: Fri, 15 Aug 2014 10:45:57 +1000
fc2e8ab
Subject: [PATCH] fix debugger y command scope level
fc2e8ab
fc2e8ab
5c2b78e73d3 moved handling of the y command into its own function,
fc2e8ab
but did not adjust the provided scope level to account for the extra
fc2e8ab
scope.
fc2e8ab
---
fc2e8ab
 lib/perl5db.pl | 2 +-
fc2e8ab
 1 file changed, 1 insertions(+), 1 deletions(-)
fc2e8ab
fc2e8ab
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
fc2e8ab
index e3f63b3..e8d7751 100644
fc2e8ab
--- a/lib/perl5db.pl
fc2e8ab
+++ b/lib/perl5db.pl
fc2e8ab
@@ -1957,7 +1957,7 @@ sub _DB__handle_y_command {
fc2e8ab
         my @vars = split( ' ', $match_vars || '' );
fc2e8ab
 
fc2e8ab
         # Find the pad.
fc2e8ab
-        my $h = eval { PadWalker::peek_my( ( $match_level || 0 ) + 1 ) };
fc2e8ab
+        my $h = eval { PadWalker::peek_my( ( $match_level || 0 ) + 2 ) };
fc2e8ab
 
fc2e8ab
         # Oops. Can't find it.
fc2e8ab
         if (my $Err = $@) {
fc2e8ab
-- 
fc2e8ab
2.4.3
fc2e8ab