summaryrefslogtreecommitdiffstats
path: root/Doc/library/pdb.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-30 17:04:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-30 17:04:28 (GMT)
commite59ca2afe3a84c7262add278d36a0f890ca379f2 (patch)
tree8db088814f9f9cfb4c088854582e54a60deae1aa /Doc/library/pdb.rst
parent0d08962659faf137927f95233e3a7d0480325131 (diff)
downloadcpython-e59ca2afe3a84c7262add278d36a0f890ca379f2.zip
cpython-e59ca2afe3a84c7262add278d36a0f890ca379f2.tar.gz
cpython-e59ca2afe3a84c7262add278d36a0f890ca379f2.tar.bz2
Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r--Doc/library/pdb.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 6da5332..e8a457e 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -368,6 +368,12 @@ 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.
+.. pdbcommand:: ll | longlist
+
+ List all source code for the current function or frame.
+
+ .. versionadded:: 3.2
+
.. pdbcommand:: a(rgs)
Print the argument list of the current function.
@@ -385,6 +391,12 @@ by the local file.
Print the type of the *expression*.
+.. pdbcommand:: source expression
+
+ Try to get source code for the given object and display it.
+
+ .. versionadded:: 3.2
+
.. _debugger-aliases:
.. pdbcommand:: alias [name [command]]