summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-30 08:45:26 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-30 08:45:26 (GMT)
commit26a0f87e28eb9c90446b23d73e78324f2d481a99 (patch)
treed42b13efa7820881c94fdca13da51a7700cdcd9e /Lib/pdb.py
parent2dfec552fe6a8884e0dd37be382e2454d701f5d9 (diff)
downloadcpython-26a0f87e28eb9c90446b23d73e78324f2d481a99.zip
cpython-26a0f87e28eb9c90446b23d73e78324f2d481a99.tar.gz
cpython-26a0f87e28eb9c90446b23d73e78324f2d481a99.tar.bz2
Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 7c6b848..cedd17e 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -147,6 +147,16 @@ unt(il) [lineno]
or equal to that is reached. In both cases, also stop when
the current frame returns.
+j(ump) lineno
+ Set the next line that will be executed. Only available in
+ the bottom-most frame. This lets you jump back and execute
+ code again, or jump forward to skip code that you don't want
+ to run.
+
+ It should be noted that not all jumps are allowed -- for
+ instance it is not possible to jump into the middle of a
+ for loop or out of a finally clause.
+
r(eturn)
Continue execution until the current function returns.