In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/1799399c45baa7e5af45db33567d2a2de629d5e0?hp=9332b95f7fd17b2400da85452a406bc151d30d91>
- Log ----------------------------------------------------------------- commit 1799399c45baa7e5af45db33567d2a2de629d5e0 Author: Ricardo Signes <[email protected]> Date: Fri Jun 7 11:51:45 2013 -0400 version bumps and perldelta for debugger depth M lib/DB.pm M lib/perl5db.pl M pod/perldelta.pod commit 7aeefbb3234c8cf563ba8065fec1b841ee1415ab Author: Mark Jason Dominus <[email protected]> Date: Fri Jun 7 11:42:07 2013 -0400 adjust $DB::deep from 100 to 1000 $DB::deep defaults to 100; this means that when the debugger gets 100 levels deep in subroutine calls, it automatically breaks execution. While this might have been appropriate in 1989, in modern Perl programs, the debugger might break before the program is even compiled. This patch adjusts the default value up to 1000. I was not able to find the default value documented anywhere. M lib/DB.pm M lib/perl5db.pl ----------------------------------------------------------------------- Summary of changes: lib/DB.pm | 4 ++-- lib/perl5db.pl | 4 ++-- pod/perldelta.pod | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/DB.pm b/lib/DB.pm index 6c1ce56..63e6f10 100644 --- a/lib/DB.pm +++ b/lib/DB.pm @@ -41,14 +41,14 @@ BEGIN { $DB::subname = ''; # currently executing sub (fully qualified name) $DB::lineno = ''; # current line number - $DB::VERSION = $DB::VERSION = '1.05'; + $DB::VERSION = $DB::VERSION = '1.06'; # initialize private globals to avoid warnings $running = 1; # are we running, or are we stopped? @stack = (0); @clients = (); - $deep = 100; + $deep = 1000; $ready = 0; @saved = (); @skippkg = (); diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 8db61dd..881a9ec 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -523,7 +523,7 @@ BEGIN { # Debugger for Perl 5.00x; perl5db.pl patch level: use vars qw($VERSION $header); -$VERSION = '1.39_10'; +$VERSION = '1.40'; $header = "perl5db.pl version $VERSION"; @@ -9030,7 +9030,7 @@ BEGIN { # This does not compile, alas. (XXX eh?) # This defines the point at which you get the 'deep recursion' # warning. It MUST be defined or the debugger will not load. - $deep = 100; + $deep = 1000; # Number of lines around the current one that are shown in the # 'w' command. diff --git a/pod/perldelta.pod b/pod/perldelta.pod index a3c2aec..e41038c 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -70,7 +70,9 @@ as an updated module in the L</Modules and Pragmata> section. =item * -... +L<DB> has been updated from 1.05 to 1.06 and L<perl5db.pl> from 1.39_10 +to 1.40. The call depth allowed by default in the debugger is now 1000 +rather than 100. =back -- Perl5 Master Repository
