Vim和Xdebug问题

时间:2014-04-09 21:14:22

标签: vim xdebug

好的,我有一个问题。我在一个旧系统ubuntu 9.04上,所以我没有能力在vim上进行apt-get,所以我去了vim网站并下载了最新版本的vim。

同样的事情适用于Xdebug,它已全部安装并显示在我的phpinfo()调用的输出中,所以这一切都很好,在我的/ etc / vim / plugin文件夹中有debugger.py和debuger.vim ,确实在.vim / plugin中有它,但那也没有。

所以我在我的终端运行vim命令,我想要调试文件名,vim打开它很好但是当我在浏览器中打开它然后在vim上点击5时,它没有做任何事情。没有任何消息来自vim,我在我的网址中添加了功能和XDEBUG_SESSION_START = 1并再次尝试,仍然没有任何关于vim,任何想法可能是什么问题?

更新

所以我将这些文件复制到/ usr / local / vim / vim64 / plugin目录中,因为所有插件似乎都存储在我的系统上,现在我在启动Vim时遇到此错误。我正在使用vim 6.4,也许这个插件适用于旧版本?

Error detected while processing /usr/local/share/vim/vim64/plugin/debugger.vim:
line    1:
E488: Trailing characters: # -*- c--oding: ko_KR.UTF-8 -*-
line    2:
E488: Trailing characters: # remote PHP debugger : remote debugger interface to DBGp protocol
  1  
line    4:
E488: Trailing characters: # Copyright (c) 2003-2006 ActiveState Software Inc.
  1  
line    6:
E488: Trailing characters: # The MIT License
  1  
line    8:
E488: Trailing characters: # Permission is hereby granted, free of charge, to any person obtaining
line    9:
E488: Trailing characters: # a copy of this software and associated documentation files
line   10:
E488: Trailing characters: # (the
line   11:
E488: Trailing characters: # including without limitation the rights to use, copy, modify,
line   12:
E488: Trailing characters: # merge, publish, distribute, sublicense, and/or sell copies of the
line   13:
E488: Trailing characters: # Software, and to permit persons to whom the Software is furnished
line   14:
E488: Trailing characters: # to do so, subject to the following conditions:
  1  
line   16:
E488: Trailing characters: # The above copyright notice and this permission notice shall be included
line   17:
E488: Trailing characters: # in all copies or substantial portions of the Software.
  1  
line   19:
E488: Trailing characters: # THE SOFTWARE IS PROVIDED
line   20:
E488: Trailing characters: # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
line   21:
E488: Trailing characters: # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
line   22:
E488: Trailing characters: # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
line   23:
E488: Trailing characters: # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
line   24:
E488: Trailing characters: # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
line   25:
E488: Trailing characters: # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1  
  1  
line   28:
E488: Trailing characters: # Authors:
line   29:
E488: Trailing characters: #    Seung Woo Shin <segv <at> sayclub.com>
line   30:
E488: Trailing characters: #    Sam Ghods <sam <at> box.net>
line   33:    
E492: Not an editor command: ^Idebugger.py -- DBGp client: a remote debugger interface to DBGp protocol
line   35:
E492: Not an editor command:     Usage:
line   36:
E492: Not an editor command:         Use with the debugger.vim vim plugin
line   38:
E492: Not an editor command:     This debugger is designed to be used with debugger.vim,
line   39:
E488: Trailing characters: ^Ia vim plugin which provides a full debugging enviroVim:     Caught deadly signal SEGV

Vim: Finished.
Segmentation fault

1 个答案:

答案 0 :(得分:0)

看起来您的旧Vim 6.4 sourcing plugin/debugger.py文件,因为它抱怨Python #注释,而不是将其提供给Python解释器。 XDebug plugin page将所需的最低Vim版本列为7.0;如果这是正确的,你可能需要升级你的Vim版本(这也有很多其他原因,并且编译你自己的Vim版本在Ubuntu上不是那么困难),或者严重破解插件(例如试试将debugger.py文件移到其他位置并调整debugger.vim中的路径。