mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
parent
26cc6b0a3d
commit
6c3ec61ce5
1 changed files with 12 additions and 2 deletions
|
|
@ -289,8 +289,18 @@ class PyDevdAPI(object):
|
|||
Removes all the breakpoints from a given file or from all files if filename == '*'.
|
||||
'''
|
||||
changed = False
|
||||
for file_to_id_to_breakpoint in [
|
||||
py_db.file_to_id_to_line_breakpoint, py_db.file_to_id_to_plugin_breakpoint]:
|
||||
lst = [
|
||||
py_db.file_to_id_to_line_breakpoint,
|
||||
py_db.file_to_id_to_plugin_breakpoint,
|
||||
py_db.breakpoints
|
||||
]
|
||||
if hasattr(py_db, 'django_breakpoints'):
|
||||
lst.append(py_db.django_breakpoints)
|
||||
|
||||
if hasattr(py_db, 'jinja2_breakpoints'):
|
||||
lst.append(py_db.jinja2_breakpoints)
|
||||
|
||||
for file_to_id_to_breakpoint in lst:
|
||||
if filename == '*':
|
||||
if file_to_id_to_breakpoint:
|
||||
file_to_id_to_breakpoint.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue