Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Remove breakpoints from files specified in path #178

Merged
merged 1 commit into from
Mar 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ptvsd/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,10 @@ def on_setBreakpoints(self, request, args):
# First, we must delete all existing breakpoints in that source.
cmd = pydevd_comm.CMD_REMOVE_BREAK
for pyd_bpid, vsc_bpid in self.bp_map.pairs():
msg = 'python-line\t{}\t{}'.format(path, vsc_bpid)
self.pydevd_notify(cmd, msg)
self.bp_map.remove(pyd_bpid, vsc_bpid)
if pyd_bpid[0] == path:
msg = 'python-line\t{}\t{}'.format(path, vsc_bpid)
self.pydevd_notify(cmd, msg)
self.bp_map.remove(pyd_bpid, vsc_bpid)

cmd = pydevd_comm.CMD_SET_BREAK
msgfmt = '{}\tpython-line\t{}\t{}\tNone\t{}\tNone'
Expand Down