gpt4 book ai didi

php - 无法让 XDebug 在 Vim 中建立连接。获取 "no attribue ' 停止'"错误

转载 作者:可可西里 更新时间:2023-11-01 01:09:10 24 4
gpt4 key购买 nike

根据此错误消息生成的搜索引擎命中率来判断,我知道这是一个常见问题,但目前还没有任何有用的答案。

我正在尝试使用 Sam Ghods 在 Vim 中设置 XDebug Debugger.vim按照 How to Debug PHP with Vim and XDebug on Linux 上的说明执行脚本(这是使用 XDebug 设置 Vim 的常用引用资料)。我在 OSX 10.6 上运行 MacVim 7.3,当我尝试将调试器连接到服务器时,我得到:

(<type 'exceptions.AttributeError'>, AttributeError("DbgProtocol instance has no attribute 'stop'",), <traceback object at 0x104595680>)
File "/Users/tjlahr/.vim/plugin/debugger.py", line 1078, in debugger_run
debugger.run()
File "/Users/tjlahr/.vim/plugin/debugger.py", line 928, in run
self.protocol.accept()
File "/Users/tjlahr/.vim/plugin/debugger.py", line 560, in accept
self.stop()

有人有解决此错误的经验吗?

请注意,我没有通过端口 9000 进行调试,因为它似乎可能与 PHP 中启用的 fastcgi 冲突。因此,我正在通过端口 9001 进行调试,并分别通过 php.ini 和 g:debuggerPort 变量中的设置进行了更改。

感谢您的帮助。

最佳答案

我想我明白了!你能试试安装这个 Vim 插件吗: http://www.vim.org/scripts/script.php?script_id=2508

关于php - 无法让 XDebug 在 Vim 中建立连接。获取 "no attribue ' 停止'"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5030215/

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