gpt4 book ai didi

linux - vdebug-vim : not working

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:56:13 26 4
gpt4 key购买 nike

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

在过去的一年里,我非常成功地使用 vdebug 调试了很多 php 代码。从昨天开始,我突然在 vim 中收到以下错误。

确切顺序:

我使用 vim 打开 index.php。

按 F5。底部显示 等待连接(Ctrl-C 取消,此消息将在 20 秒内自毁...)

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

通常在此之后调试开始。但是从昨天开始什么都没有发生。它一直显示 正在等待连接(Ctrl-C 取消,此消息将在 20 秒内自毁...) 所以在 40 秒后,如果我键入 enter 它显示了 output1 。后来我再次关闭终端并运行所有步骤,除了这次输入 ctrl + c 而不是 enter,它显示 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

最佳答案

我发现有一个交换文件 .Debugger.swp 因为它 dedugger 不工作。我已经删除了那个文件。它开始工作了

此外,vdebug 生成的任何其他 swp 文件也将被删除。

关于linux - vdebug-vim : not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25812965/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com