Michael D Schleif wrote:
Ref: <http://perl.apache.org/docs/1.0/guide/debug.html>
     
<http://perl.apache.org/docs/1.0/guide/debug.html#Introduction_to_the_Perl_Debugger>
     <http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging>

Several places mention perldb command `w' (window).  Is that command
missing from more recent versions of perldb?

Loading DB routines from perl5db.pl version 1.19

     DB<1> w
   Adding a watch-expression requires an expression

Yes, there is `l' and `-' -- however, these show lines only _after_ or
_before_ the current line.  `w' in the reference webpage results in a
window with lines _before_ and _after_ the current line, which is ideal
for establishing context.

How can I do this with my perldb?

Unfortunately perl 5.8 has mucked around with letters and redefined a bunch of them. Using 'h' will tell you what are the new commands:


  DB<1> h
List/search source lines:               Control script execution:
  l [ln|sub]  List source code            T           Stack trace
  - or .      List previous/current line  s [expr]    Single step [in expr]
  v [line]    View around line            n [expr]    Next, steps over subs

so you are after 'v' in 5.8+, what used to be 'w' in 5.6

I'll update the online docs.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to