At 03:47 PM 3/26/02 -0500, Nikola Janceski wrote:
>2 questions actually.
>
>1. Is there a way to make the debugger display the next N lines of code at
>each prompt (instead of just one).
You would probably prefer to just hit 'w' or 'l' whenever you want to see
more than one line. But... you can give the command
{ w
and then before each prompt the debugger will act as though you had just
typed 'w'. That' not quite what you were asking for, because it lists some
lines before your current line. But you can poke into the debugger with
the command
$DB::preview = 0
and it won't list any lines before the current one. You can change how
many lines it lists with
$DB::window = number
But don't tell anyone I said so :-)
>2. What is the best way to avoid the loops on one line? I use c <next line
>number> but I was hoping for a simpler solution. (ie. foreach my $line (map
>{ stuff } @array){ )
I don't know of a better way.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]