X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldebguts.pod;h=cde70b2fb022f347950ce0d63899ab5d55251266;hb=1a6071381913ad8fca476a56b6dbb62e5c99c1bd;hp=d353ada131758352369fff7bf1ba9ade5688b04b;hpb=74410c12171c00e0d09b82b6e20659405213d012;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldebguts.pod b/pod/perldebguts.pod index d353ada..cde70b2 100644 --- a/pod/perldebguts.pod +++ b/pod/perldebguts.pod @@ -111,15 +111,15 @@ calls are not possible, even though C<&DB::sub> exists. =head2 Writing Your Own Debugger =head3 Environment Variables - + The C environment variable can be used to define a debugger. For example, the minimal "working" debugger (it actually doesn't do anything) consists of one line: - + sub DB::DB {} It can easily be defined like this: - + $ PERL5DB="sub DB::DB {}" perl -d your-script Another brief debugger, slightly more useful, can be created @@ -130,9 +130,9 @@ with only the line: This debugger prints a number which increments for each statement encountered and waits for you to hit a newline before continuing to the next statement. - + The following debugger is actually useful: - + { package DB; sub DB {} @@ -151,7 +151,7 @@ after the debugger completes its own initialization.) After the rc file is read, the debugger reads the PERLDB_OPTS environment variable and uses it to set debugger options. The contents of this variable are treated as if they were the argument -of an C debugger command (q.v. in L). +of an C debugger command (q.v. in L). =head3 Debugger internal variables In addition to the file and subroutine-related variables mentioned above, @@ -183,7 +183,7 @@ C<"$break_condition\0$action">. =back -=head3 Debugger customization fucntions +=head3 Debugger customization functions Some functions are provided to simplify customization. @@ -240,9 +240,9 @@ information. For example, contrast this expression trace: main::bar((eval 170):2): 42 -with this one, once the Cption C has been set: +with this one, once the Cption C has been set: - DB<4> O f=2 + DB<4> o f=2 frame = '2' DB<5> t print foo() * bar() 3: foo() * bar()