Skip to content

Commit

Permalink
Options are available before running, as per #4
Browse files Browse the repository at this point in the history
Option set up is done at Runner.__init__() as well as Runner.open().
This fixes a bug with trying to set breakpoints before running the
debugger.
  • Loading branch information
joonty committed Aug 23, 2012
1 parent 622b0c0 commit 1493683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/python/vdebug/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Runner:

def __init__(self):
self.api = None
vdebug.opts.Options.set(vim.eval('g:vdebug_options'))
self.breakpoints = vdebug.breakpoint.Store()
self.ui = vdebug.ui.vimui.Ui(self.breakpoints)

Expand Down Expand Up @@ -181,7 +182,6 @@ def remove_breakpoint(self,args):
self.breakpoints.remove_breakpoint_by_id(id)

def set_breakpoint(self,args):
vdebug.opts.Options.set(vim.eval('g:vdebug_options'))
bp = vdebug.breakpoint.Breakpoint.parse(self.ui,args)
if bp.type == "line":
id = self.breakpoints.find_breakpoint(\
Expand Down

0 comments on commit 1493683

Please sign in to comment.