diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-29 11:54:17 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-11-29 11:54:17 +0000 |
commit | 6f1070485f54469d7bf48df8306e398609340a07 (patch) | |
tree | 08eda3c912bb78c17b0655e140161da0213126d7 /Lib/pdb.py | |
parent | Issue #10565: Iterator ABC should require both __next__ and __iter__. (diff) | |
download | cpython-6f1070485f54469d7bf48df8306e398609340a07.tar.gz cpython-6f1070485f54469d7bf48df8306e398609340a07.tar.bz2 cpython-6f1070485f54469d7bf48df8306e398609340a07.zip |
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index a159d4ccd75..f5d8c2a08a5 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -774,7 +774,8 @@ class Pdb(bdb.Bdb, cmd.Cmd): except ValueError as err: self.error(err) else: - self.clear_break(bp.file, bp.line) + self.clear_bpbynumber(i) + #self.clear_break(bp.file, bp.line) self.message('Deleted %s' % bp) do_cl = do_clear # 'c' is already an abbreviation for 'continue' |