[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)
files: pdb_list_refocus.patch
keywords: patch
messages: 75108
nosy: dclemente
severity: normal
status: open
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>
<http://bugs.python.org/issue4179>
_______________________________________


More information about the Python-bugs-list mailing list