adjust $DB::deep from 100 to 1000
authorMark Jason Dominus <mjd@plover.com>
Fri, 7 Jun 2013 15:42:07 +0000 (11:42 -0400)
committerRicardo Signes <rjbs@cpan.org>
Fri, 7 Jun 2013 15:43:25 +0000 (11:43 -0400)
$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.

lib/DB.pm
lib/perl5db.pl

index 6c1ce56..cbaff90 100644 (file)
--- a/lib/DB.pm
+++ b/lib/DB.pm
@@ -48,7 +48,7 @@ BEGIN {
   $running = 1;         # are we running, or are we stopped?
   @stack = (0);
   @clients = ();
-  $deep = 100;
+  $deep = 1000;
   $ready = 0;
   @saved = ();
   @skippkg = ();
index 8db61dd..188b8fb 100644 (file)
@@ -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.