From: Gurusamy Sarathy Date: Sun, 12 Sep 1999 16:59:12 +0000 (+0000) Subject: better debugger help output (from Ilya Zakharevich) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9f678490bf5c7afc634db214e171e61ee04f3da;p=p5sagit%2Fp5-mst-13.2.git better debugger help output (from Ilya Zakharevich) p4raw-id: //depot/perl@4128 --- diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 0eac573..7b0567c 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -350,7 +350,7 @@ if ($notty) { print $OUT ("Emacs support ", $emacs ? "enabled" : "available", ".\n"); - print $OUT "\nEnter h or `h h' for help.\n\n"; + print $OUT "\nEnter h or `h h' for help, run `perldoc perldebug' for more help.\n\n"; } } @@ -1867,6 +1867,8 @@ B Pure-man-restart of debugger, some of debugger state history, breakpoints and actions, debugger Bptions and the following command-line options: I<-w>, I<-I>, I<-e>. B [I] Get help [on a specific debugger command], enter B<|h> to page. + Complete description of debugger is available in B + section of Perl documention B Summary of debugger commands. B or B<^D> Quit. Set B<\$DB::finished = 0> to debug global destruction. @@ -1876,18 +1878,17 @@ I I B [I|I] List source code B Stack trace B<-> or B<.> List previous/current line B [I] Single step [in expr] B [I] List around line B [I] Next, steps over subs - B I View source in file > Repeat last B or B + B I View source in file /B> Repeat last B or B BIB BIB Search forw/backw B Return from subroutine B Show versions of modules B [I|I] Continue until position I B List break/watch/actions B [...] Set debugger options B [I] Toggle trace [trace expr] - B<<>[B<<>] or B<{>[B<{>] [I] Do before prompt B [I|I] [I] Set breakpoint - B<>>[B<>>] [I] Do after prompt B I [I] Set breakpoint for sub + B<<>[B<<>]|B<{>[B<{>]|B<>>[B<>>] [I] Do pre/post-prompt B [I|I|I] [I] Set breakpoint B<$prc> [I|I] Redo a previous command B [I] or B Delete a/all breakpoints B [I<-num>] Display last num commands B [I] I Do cmd before line B<=> [I I] Define/list an alias B I Add a watch expression B [I] Get help on command B or B Delete all actions/watch - B<|>[B<|>]I Send output to pager B<$psh>\[B<$psh>\] I Run cmd in a subprocess + B<|>[B<|>]I Send output to pager B<$psh>\[B<$psh>\] I Run cmd in a subprocess B or B<^D> Quit B Attempt a restart I B Execute perl code, also see: B,B,B I B|B I Evals expr in array context, dumps the result or lists methods. @@ -1895,6 +1896,7 @@ I B Execute perl code, also see: B,B,B< B [[B]I] List subroutine names [not] matching pattern B [I [I]] List Variables in Package. Vars can be ~pattern or !pattern. B [I] Same as \"B I [I]\". +I BI<:> Type B I Run B for more help. END_SUM # ')}}; # Fix balance of Emacs parsing }