【发布时间】:2014-04-10 15:05:28
【问题描述】:
好的,我有一个问题。我在旧系统 ubuntu 9.04 上,所以我没有能力在 vim 上做 apt-get,所以我去了 vim 网站并下载了最新版本的 vim。
Xdebug 也是如此,它已全部安装并显示在我的 phpinfo() 调用的输出中,所以一切都很好,将 debugger.py 和 debuger.vim 放在我的 /etc/vim/plugin 文件夹中,确实在 .vim/plugin 中有它,但这也不起作用。
所以我在终端中使用要调试的文件名运行 vim 命令,vim 可以正常打开它,但是当我在浏览器中打开它然后在 vim 上按 5 时,它什么也没做。没有来自 vim 的消息,我在我的 url 中添加了 feature&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
【问题讨论】: