vdebug - vim:不工作

时间:2014-09-12 16:40:40

标签: linux vim xdebug

我正在使用archlinux并安装了gvim和python。然后在vim中使用vundle,为vim安装了插件vdebug。

我使用vdebug非常成功地调试了大量的PHP代码。突然从昨天开始,我在vim中遇到以下错误。

确切序列:

我使用vim打开index.php。

按F5。在底部显示Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in 20 seconds...)

然后转到我的浏览器并刷新链接:http://www.mylocalsite.com/?XDEBUG_SESSION_START=1

通常在这之后调试开始。但是从昨天开始没有任何事它会持续显示Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in 20 seconds...)所以在40秒之后,如果我输入输入,它会显示 output1 。后来我再次关闭终端并运行所有步骤,除了这次键入 ctrl + c 而不是输入,它显示 output2

OUTPUT1

    Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in  20  seconds...)
    An error occured: <class 'vim.error'>
    Traceback (most recent call last):
      File "/home/simha/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
        self.runner.run()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
        self.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 47, in open
        self.ui.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 75, in open
        raise e
    error: Vim(new):E325: ATTENTION

输出2

    Error detected while processing :
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/simha/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
        self.runner.run()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
        self.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 47, in open
        self.ui.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 52, in open
        self.watchwin.create()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 337, in create
        vim.command('silent ' + self.open_cmd + ' ' + self.name)
    KeyboardInterrupt

1 个答案:

答案 0 :(得分:1)

我发现有一个交换文件.Debugger.swp,因为重复数据删除工具无效。我删除了该文件。它开始工作了

vdebug制作的任何其他swp文件也会被删除。