xDebug没有在断点处停止

时间:2015-06-25 03:24:04

标签: php linux visual-studio xdebug centos6

我一直在google和stackoverflow上搜索好几个小时.....没有找到理由......

我的应用程序托管在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

1 个答案:

答案 0 :(得分:0)

我从我的Linux机器上卸载了PHP 5.4.41并重新安装到PHP 5.5.27(更高版本)。 突然间一切正在发挥作用。

我相信是因为xDebug如何工作,它运行在Linux的PHP上并将调试信息发送到我的本地机器,这在不同版本的PHP 5.6.8中进行了解释....这就是为什么没有用。