2013-09-25 37 views
4

我有調試Sublime Text 2,Vagrant和XDebug的問題。調試不會在斷點流氓與XDebug和崇高的文字:不要停在斷點

阻止我用這個流浪漢框https://github.com/bryannielsen/Laravel4-Vagrant

從來就閱讀了大量的StackOverflow的問題,並沒有對我的問題的答案。 Xdebug successfully connects to DBGP clients, but won't stop at breakpoints講述了不使用xdebug作爲模塊,並且我用作擴展。看起來好!其他人談論php.ini配置,但我的日誌看起來不錯

當啓動sublimetext中的xdebug(與https://github.com/Kindari/SublimeXdebug)它啓動網頁罰款,但崇高顯示一條消息:等待執行,不停止在斷點和網頁是滿載

我Xdebug的日誌看起來不錯

Log opened at 2013-09-25 12:01:56 
I: Checking remote connect back address. 
I: Remote address found, connecting to 10.0.2.2:9001. 
I: Connected to client. :-) 
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/public/index.php" language="PHP" protocol_version="1.0" appid="14735" idekey="sublime.xdebug"><engine version="2.2.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2013 by Derick Rethans]]></copyright></init> 

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response> 

Log closed at 2013-09-25 12:01:56 

崇高文本2正在等待監聽端口9001,這是我的php.ini配置

xdebug.remote_enable=1 
xdebug.remote_port=9001 
xdebug.remote_autostart=0 
xdebug.remote_connect_back=1 
xdebug.remote_log=tmp/xdebug.log 

有人有這方面的經驗?謝謝!

回答

0

我從來沒有用過Sublime。 (其實我是googling是否有可能並登陸到這個頁面:)

無論如何,我會盡力幫助你。我遇到了與NetBeans類似的問題,並且我發現如果您不指定遠程主機,xDebug將不會回撥。這就是爲什麼NetBeans不會在任何斷點停止的原因,它只是沒有從xDebug得到任何迴應。

嘗試添加到您的php.ini:

xdebug.remote_host = 10.0.2.2 

我在VM xdebug.ini看起來是這樣的:

xdebug.remote_enable = On 
xdebug.remote_host = 10.0.2.2 

附:還要確保在執行phpinfo()時填充這些設置。