bulrush has asked for the wisdom of the Perl Monks concerning the following question:

When I use the 'l' command in the Perl debugger, I want to change the code to list a few more lines before the current line, and add a few more lines after the current line, but I can't seem to find the code.

I have Perl 5.20 on RHEL in /export/home/USER/perl5/perlbrew/perls/perl-5.20.1/. I can't seem to find a filename like "debug.pm" or "debug.pl".

Does anyone know what this code file is?

Thank you.

Replies are listed 'Best First'.
Re: Trying to find debug code
by Corion (Patriarch) on Jan 15, 2016 at 12:36 UTC

    The debugger lives in perl5db.pl.

    Looking at the documentation, it seems that there are $start and $incr variables which you can give to the l command as parameters to show more/different lines.

      Thank you! I found it in perl5/perlbrew/build/perl-5.20-1/lib/perl5db.pl.