def open(self):
        if self.is_open:
            return
        self.is_open = True

        try:
            existing_buffer = True
            cur_buf_name = vim.eval("bufname('%')")
            if cur_buf_name is None:
                existing_buffer = False
                cur_buf_name = ''

            self.current_tab = vim.eval("tabpagenr()")

            vim.command('silent tabnew')
            self.empty_buf_num = vim.eval('bufnr("%")')
            if existing_buffer:
                vim.command(cur_buf_name % 'call Vdebug_edit("%s")')

            self.tabnr = vim.eval("tabpagenr()")

            srcwin_name = self.__get_srcwin_name()


            self.watchwin = WatchWindow(self,'vertical belowright new')
            self.watchwin.create()

            self.stackwin = StackWindow(self,'belowright new')
            self.stackwin.create()

            self.statuswin = StatusWindow(self,'belowright new')
            self.statuswin.create()
            self.statuswin.set_status("loading")

            self.tracewin = TraceWindow(self,'rightbelow 7new')

            self.watchwin.set_height(20)
            self.statuswin.set_height(5)

            logwin = LogWindow(self,'rightbelow 6new')

            vdebug.log.Log.set_logger(\
                    vdebug.log.WindowLogger(\
                    vdebug.opts.Options.get('debug_window_level'),\
                    logwin))

            winnr = self.__get_srcwinno_by_name(srcwin_name)
            self.sourcewin = SourceWindow(self,winnr)
            self.sourcewin.focus()
        except Exception, e:
            self.is_open = False
            raise e
dataset/ETHPy150Open joonty/vdebug/plugin/python/vdebug/ui/vimui.py/Ui.open/swapped operands of `%`