From: Peter Scott Date: Sun, 16 Jun 2002 18:31:31 +0000 (-0700) Subject: Re: [ID 20020614.027] Bad Debugger mojo in RC1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=947cb11492b627fa9c48ff51b199d66ea2a1fdf2;p=p5sagit%2Fp5-mst-13.2.git Re: [ID 20020614.027] Bad Debugger mojo in RC1 Message-id: <4.3.2.7.2.20020616182012.00b70780@shell2.webquarry.com> @file -> source file p4raw-id: //depot/perl@17265 --- diff --git a/lib/perl5db.pl b/lib/perl5db.pl index c905678..e106621 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -1278,7 +1278,7 @@ EOP } } next CMD; }; - $cmd =~ /^\@\s*(.*\S)/ && do { + $cmd =~ /^source\s+(.*\S)/ && do { if (open my $fh, $1) { push @cmdfhs, $fh; } else { @@ -2761,7 +2761,7 @@ B<$psh$psh> I Run cmd in a subprocess (reads from DB::IN, writes to DB::O . ( $rc eq $sh ? "" : " B<$psh> [I] Run I in subshell (forces \"\$SHELL -c 'cmd'\")." ) . " See 'B I' too. -B<@>I Execute I containing debugger commands (may nest). +B I Execute I containing debugger commands (may nest). B I<-number> Display last number commands (default all). B

I Same as \"I\" in current package. B<|>I Run debugger command, piping DB::OUT to current pager. @@ -2836,7 +2836,7 @@ I B List break/watch/act B [I<-num>] Display last num commands B [I] I Do cmd before line B<=> [I I] Define/list an alias B I Delete a/all actions B [I] Get help on command B I Add a watch expression - B Complete help page B I Delete a/all watch expressions + B Complete help page B I Delete a/all watch exprs 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 @@ -2930,7 +2930,7 @@ B<$psh$psh> I Run cmd in a subprocess (reads from DB::IN, writes to DB::O . ( $rc eq $sh ? "" : " B<$psh> [I] Run I in subshell (forces \"\$SHELL -c 'cmd'\")." ) . " See 'B I' too. -B<@>I Execute I containing debugger commands (may nest). +B I Execute I containing debugger commands (may nest). B I<-number> Display last number commands (default all). B

I Same as \"I\" in current package. B<|>I Run debugger command, piping DB::OUT to current pager. diff --git a/pod/perldebtut.pod b/pod/perldebtut.pod index 013dfb4..2ead854 100644 --- a/pod/perldebtut.pod +++ b/pod/perldebtut.pod @@ -159,14 +159,14 @@ DB<1>h f filename View source in file Repeat last n or s /pattern/ ?patt? Search forw/backw r Return from subroutine M Show module versions c [ln|sub] Continue until position - Debugger controls: L List break/watch/actions + Debugger controls: L List break/watch/actions o [...] Set debugger options t [expr] Toggle trace [trace expr] <[<]|{[{]|>[>] [cmd] Do pre/post-prompt b [ln|event|sub] [cnd] Set breakpoint ! [N|pat] Redo a previous command B ln|* Delete a/all breakpoints H [-num] Display last num commands a [ln] cmd Do cmd before line = [a val] Define/list an alias A ln|* Delete a/all actions h [db_cmd] Get help on command w expr Add a watch expression - h h Complete help page W expr|* Delete a/all watch expressions + h h Complete help page W expr|* Delete a/all watch exprs |[|]db_cmd Send output to pager ![!] syscmd Run cmd in a subprocess q or ^D Quit R Attempt a restart Data Examination: expr Execute perl code, also see: s,n,t expr @@ -175,6 +175,7 @@ DB<1>h S [[!]pat] List subroutine names [not] matching pattern V [Pk [Vars]] List Variables in Package. Vars can be ~pattern or !pattern. X [Vars] Same as "V current_package [Vars]". + y [n [Vars]] List lexicals in higher scope . Vars same as V. For more help, type h cmd_letter, or run man perldebug for all docs. More confusing options than you can shake a big stick at! It's not as bad as diff --git a/pod/perldebug.pod b/pod/perldebug.pod index 45c2420..b63bc4a 100644 --- a/pod/perldebug.pod +++ b/pod/perldebug.pod @@ -416,10 +416,10 @@ their C<$ENV{SHELL}> variable) will be used, which can interfere with proper interpretation of exit status or signal and coredump information. -=item @ file +=item source file -Read and execute debugger commands from I. I may itself contain -C<@> commands. +Read and execute debugger commands from I. +I may itself contain C commands. =item H -number