Show the traceback line numbers as well as the current line numbers if an exception is being debugged. Courtesy of pdb++ by Antonio Cuni. Also document -> and >> markers for "list".

This commit is contained in:
Georg Brandl 2010-07-30 18:46:38 +00:00
parent cdf66a9a7c
commit 0a9c3e91dc
4 changed files with 124 additions and 21 deletions

View file

@ -368,9 +368,18 @@ by the local file.
list 11 lines around at that line. With two arguments, list the given range;
if the second argument is less than the first, it is interpreted as a count.
The current line in the current frame is indicated by ``->``. If an
exception is being debugged, the line where the exception was originally
raised or propagated is indicated by ``>>``, if it differs from the current
line.
.. versionadded:: 3.2
The ``>>`` marker.
.. pdbcommand:: ll | longlist
List all source code for the current function or frame.
List all source code for the current function or frame. Interesting lines
are marked as for :pdbcmd:`list`.
.. versionadded:: 3.2