summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-11 14:13:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-11 14:13:25 (GMT)
commit98353941eab1922b1df1ebb1f85c9896e1716c75 (patch)
treed85f1c91b65e73f6670f7b3f468b6a893ca4ad08 /Lib/pdb.py
parentaac5c8669f34b285c9582dd7083d74dcca31dbae (diff)
downloadcpython-98353941eab1922b1df1ebb1f85c9896e1716c75.zip
cpython-98353941eab1922b1df1ebb1f85c9896e1716c75.tar.gz
cpython-98353941eab1922b1df1ebb1f85c9896e1716c75.tar.bz2
Add the "until" command to pdb
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 10303c8..8616202 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -612,6 +612,11 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self.lineno = None
do_d = do_down
+ def do_until(self, arg):
+ self.set_until(self.curframe)
+ return 1
+ do_unt = do_until
+
def do_step(self, arg):
self.set_step()
return 1
@@ -962,6 +967,14 @@ i.e., the breakpoint is made unconditional."""
Execute the current line, stop at the first possible occasion
(either in a function that is called or in the current function)."""
+ def help_until(self):
+ self.help_unt()
+
+ def help_unt(self):
+ print """unt(il)
+Continue execution until the line with a number greater than the current
+one is reached or until the current frame returns"""
+
def help_next(self):
self.help_n()