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

Commit

Permalink
Merge pull request #178 from karthiknadig/bugs
Browse files Browse the repository at this point in the history
Remove breakpoints from files specified in path
  • Loading branch information
karthiknadig authored Mar 5, 2018
2 parents 5193b7a + df74265 commit 7842a14
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit 7842a14

Please sign in to comment.