New submission from Daniel Clemente Laboreo <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com