mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Add the "until" command to pdb
This commit is contained in:
parent
aac5c8669f
commit
98353941ea
7 changed files with 49 additions and 16 deletions
13
Lib/pdb.py
13
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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue