【问题标题】:vdebug - vim : not workingvdebug - vim:不工作
【发布时间】:2014-09-12 16:40:39
【问题描述】:

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

我在过去 1 年中非常成功地使用 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秒后,如果我输入 enter 它会显示 output1 。后来我再次关闭终端并运行所有步骤,除了这次输入 ctrl + c 而不是输入,它显示 output2

输出1

    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

【问题讨论】:

    标签: linux vim xdebug


    【解决方案1】:

    我发现有一个交换文件 .Debugger.swp,因此调试器无法正常工作。我已经删除了那个文件。它开始工作了

    vdebug 生成的任何其他 swp 文件也会被删除。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-07
      • 2012-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多