summaryrefslogtreecommitdiffstats
path: root/Doc/library/pdb.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-30 18:46:38 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-30 18:46:38 (GMT)
commit0a9c3e91dc50ce22a48ff7364a6c297ffb91c19a (patch)
treecfbc1e378c95a70e7d07167ae0c985572a524ad4 /Doc/library/pdb.rst
parentcdf66a9a7c6fe761353058d6d8eb3695ac567722 (diff)
downloadcpython-0a9c3e91dc50ce22a48ff7364a6c297ffb91c19a.zip
cpython-0a9c3e91dc50ce22a48ff7364a6c297ffb91c19a.tar.gz
cpython-0a9c3e91dc50ce22a48ff7364a6c297ffb91c19a.tar.bz2
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".
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r--Doc/library/pdb.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index e8a457e..d613e0b 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -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