Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing breakpoint removal

  • Loading branch information...
commit e4d9a6e96deea17a5bb01f442396455c5e67a3d0 1 parent f64385d
@jaredly authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  vim_debug/new_debugger.py
  2. +4 −1 vim_debug/ui.py
View
2  vim_debug/new_debugger.py
@@ -114,7 +114,7 @@ def start_url(self, url):
return self.start()
def start_py(self, fname):
- subprocess.Popen(('pydbgp', '-d', 'localhost:9000', fname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ subprocess.Popen(('pydbgp.py', '-d', 'localhost:9000', fname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
self._type = 'python'
return self.start()
View
5 vim_debug/ui.py
@@ -57,6 +57,9 @@ def close(self):
vim.command('sign unplace 1')
vim.command('sign unplace 2')
+ for bid in self.breaks.keys():
+ file, line, tid = self.breaks.pop(bid)
+ vim.command('sign unplace %d file=%s' % (tid, file))
# destory all created windows
self.destroy()
@@ -133,7 +136,7 @@ def set_break(self, tid, bid):
def clear_break(self, tid):
bid = self.toremove.pop(tid)
if bid in self.breaks:
- file, line, tid = self.breaks[bid]
+ file, line, tid = self.breaks.pop(bid)
vim.command('sign unplace %d file=%s' % (tid, file))
else:
print 'failed to remove', bid
Please sign in to comment.
Something went wrong with that request. Please try again.