[New-bugs-announce] [issue4179] pdb: Allow the "list" command to return to the currently debugged line
Daniel Clemente Laboreo
report at bugs.python.org
Wed Oct 22 23:07:34 CEST 2008
New submission from Daniel Clemente Laboreo <dcl441-bugs at yahoo.com>:
The attached patch against today's trunk adds a new option to the "list"
("l") command of the debugger (pdb): "l ."
"l" starts showing the portion of code which contains the current line.
Further calls to "l" show the code below that. I found that I needed a
way to see the original line again. Manually I'd do "w" to see the
current line number and then "l 123" or so.
The new command "l ." brings you again to the code portion that was
shown first time, so this is automatic and faster.
I have absolutely no preference for the syntax "."; please change it if
something else would be more mnemonic or consistent.
Since this is my first patch; please complain if I do something wrong.
components: Library (Lib)
title: pdb: Allow the "list" command to return to the currently debugged line
type: feature request
Added file: http://bugs.python.org/file11860/pdb_list_refocus.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce