Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints. #24646

Merged
merged 11 commits into from
Jun 11, 2021
Next Next commit
bpo-43318: pdb can't output the prompt message when successfully clea…
…r breakpoints by filename:lineno
  • Loading branch information
huzhaojie committed Jun 11, 2021
commit 16c9a22ae2cbc93e615b999fceadff2e6b800d67
2 changes: 1 addition & 1 deletion Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def do_clear(self, arg):
except ValueError:
err = "Invalid line number (%s)" % arg
else:
bplist = self.get_breaks(filename, lineno)
bplist = self.get_breaks(filename, lineno)[:]
err = self.clear_break(filename, lineno)
if err:
self.error(err)
Expand Down