This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dclemente
Recipients dclemente
Date 2008-10-22.21:07:30
SpamBayes Score 7.1859e-09
Marked as misclassified No
Message-id <1224709654.06.0.420157536807.issue4179@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-10-22 21:07:34dclementesetrecipients: + dclemente
2008-10-22 21:07:34dclementesetmessageid: <1224709654.06.0.420157536807.issue4179@psf.upfronthosting.co.za>
2008-10-22 21:07:33dclementelinkissue4179 messages
2008-10-22 21:07:32dclementecreate