根據這個錯誤信息產生多少搜索引擎來判斷,我知道這是一個常見問題,但沒有任何有用的答案。無法使XDebug在Vim中建立連接。 「沒有attribue'停止'」錯誤
我試圖在使用Sam Ghods Debugger.vim腳本的Vim中設置XDebug,同時遵循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變量中的設置進行了更改。
感謝您的幫助。
你可以發佈你的php.ini的XDebug部分嗎? – glomad 2011-02-21 18:41:24