2015-06-25 92 views
0

我在谷歌一直在尋找和StackOverflow上幾個小時.....沒找到原因...的XDebug不停止在斷點

我曾經在一個CentOS 6.5的Apache和調試我的應用程序託管我的開發機器與Visual Studio + PHP工具。

直到我對Centos機器做了一些更新,重新啓動,couchdb安裝/配置(以及很多其他的事情),它才正常工作,然後我注意到xdebug不再停在斷點處,它只停止如果有異常,或者我在PHP腳本中寫出了xdebug_break()...

我試過禁用SELinux,Iptables,它也沒有幫助。

然後我看了看xdebug.log文件,它如下給我隨機誤差:

I: Connected to client. :-) 
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///home/ec2-user/webapps/webapps/PVPCardGame/index.php" language="PHP" protocol_version="1.0" appid="$ 

<- breakpoint_set -i x0-10000 -t exception -x "Fatal error" 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="x0-10000" id="39890001"></response> 

<- breakpoint_set -i x1-10001 -t exception -x "Parse error" 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="x1-10001" id="39890002"></response> 

<- breakpoint_set -i x2-10002 -t exception -x "Unknown error" 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="x2-10002" id="39890003"></response> 

<- feature_get -i 3 -n max_children 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="3" feature_name="max_children" supported="1"><![CDATA[32]]></response> 

<- breakpoint_set -i 4-0 -t line -f file:///home/ec2-user/webapps/webapps/PVPCardGame_fuel/app/classes/controller/user.php -n 104 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4-0" id="39890004"></response> 

<- breakpoint_set -i 5-1 -t line -f file:///home/ec2-user/webapps/webapps/PVPCardGame_fuel/app/classes/controller/user.php -n 108 
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5-1" id="39890005"></response> 

所以它連接到我的客戶端,但我從什麼錯誤日誌...

零想法

的XDebug版本2.3.2 PHP版本5.4.41

回答

0

我已經從我的Linux機器上卸載PHP 5.4.41並重新安裝到PHP 5.5.27這是更高的版本。 而所有突然的工作。

我相信是因爲Xdebug的是如何工作的,它運行在Linux上的PHP和發送調試信息到我的本地機器上,這是在不同版本的PHP 5.6.8的解釋....這就是爲什麼不工作。