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

Commit

Permalink
Remove breakpoints from files specified in path
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Mar 5, 2018
1 parent 5193b7a commit df74265
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 df74265

Please sign in to comment.