summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scott <Peter@PSDT.com>2002-06-16 11:31:31 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-17 00:53:49 +0000
commit947cb11492b627fa9c48ff51b199d66ea2a1fdf2 (patch)
tree9c569051ad32f0907214715065f29c02760f47d1
parentb6f4737ce959f221803c3c982175b73f56c125f1 (diff)
downloadperl-947cb11492b627fa9c48ff51b199d66ea2a1fdf2.tar.gz
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
-rw-r--r--lib/perl5db.pl8
-rw-r--r--pod/perldebtut.pod5
-rw-r--r--pod/perldebug.pod6
3 files changed, 10 insertions, 9 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index c905678fb8..e10662148f 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<cmd> Run cmd in a subprocess (reads from DB::IN, writes to DB::O
. ( $rc eq $sh ? "" : "
B<$psh> [I<cmd>] Run I<cmd> in subshell (forces \"\$SHELL -c 'cmd'\")." ) . "
See 'B<O> I<shellBang>' too.
-B<@>I<file> Execute I<file> containing debugger commands (may nest).
+B<source> I<file> Execute I<file> containing debugger commands (may nest).
B<H> I<-number> Display last number commands (default all).
B<p> I<expr> Same as \"I<print {DB::OUT} expr>\" in current package.
B<|>I<dbcmd> Run debugger command, piping DB::OUT to current pager.
@@ -2836,7 +2836,7 @@ I<Debugger controls:> B<L> List break/watch/act
B<H> [I<-num>] Display last num commands B<a> [I<ln>] I<cmd> Do cmd before line
B<=> [I<a> I<val>] Define/list an alias B<A> I<ln|*> Delete a/all actions
B<h> [I<db_cmd>] Get help on command B<w> I<expr> Add a watch expression
- B<h h> Complete help page B<W> I<expr|*> Delete a/all watch expressions
+ B<h h> Complete help page B<W> I<expr|*> Delete a/all watch exprs
B<|>[B<|>]I<db_cmd> Send output to pager B<$psh>\[B<$psh>\] I<syscmd> Run cmd in a subprocess
B<q> or B<^D> Quit B<R> Attempt a restart
I<Data Examination:> B<expr> Execute perl code, also see: B<s>,B<n>,B<t> I<expr>
@@ -2930,7 +2930,7 @@ B<$psh$psh> I<cmd> Run cmd in a subprocess (reads from DB::IN, writes to DB::O
. ( $rc eq $sh ? "" : "
B<$psh> [I<cmd>] Run I<cmd> in subshell (forces \"\$SHELL -c 'cmd'\")." ) . "
See 'B<O> I<shellBang>' too.
-B<@>I<file> Execute I<file> containing debugger commands (may nest).
+B<source> I<file> Execute I<file> containing debugger commands (may nest).
B<H> I<-number> Display last number commands (default all).
B<p> I<expr> Same as \"I<print {DB::OUT} expr>\" in current package.
B<|>I<dbcmd> Run debugger command, piping DB::OUT to current pager.
diff --git a/pod/perldebtut.pod b/pod/perldebtut.pod
index 013dfb4464..2ead854bd4 100644
--- a/pod/perldebtut.pod
+++ b/pod/perldebtut.pod
@@ -159,14 +159,14 @@ DB<1>h
f filename View source in file <CR/Enter> 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 <n>. 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 45c2420472..b63bc4ab62 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<file>. I<file> may itself contain
-C<@> commands.
+Read and execute debugger commands from I<file>.
+I<file> may itself contain C<source> commands.
=item H -number