X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldebguts.pod;h=cde70b2fb022f347950ce0d63899ab5d55251266;hb=d360a069d6bdc55d9bfda16507abbff2168bf4f7;hp=f507ac8997a72a12e3cfc9a37d0ffea55fa0cef9;hpb=492652be590915fcb2621eeceaf000a1c070956a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldebguts.pod b/pod/perldebguts.pod index f507ac8..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 {}