Xdebug没有停止

时间:2019-06-27 11:07:36

标签: phpstorm xdebug

初始数据:

  • PhpStorm + Vagrant + PHP 7.2 + Xdebug 2.7.2

  • 已启用侦听PHP调试连接。

  • 无断点。

Xdebug不允许执行脚本,页面只会永远加载到浏览器中。当侦听PHP调试连接在PhpStorm脚本中禁用时,将正确执行。

根据xdebug远程日志,Xdebug能够连接并开始执行某项操作,但仍保留在中间,并且不执行其他任何操作。请参阅下面的调试日志

[25600] Log opened at 2019-06-27 10:57:21
[25600] I: Checking remote connect back address.
[25600] I: Checking header 'HTTP_X_FORWARDED_FOR'.
[25600] I: Checking header 'REMOTE_ADDR'.
[25600] I: Remote address found, connecting to 192.168.56.1:9000.
[25600] I: Connected to client. :-)
[25600] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/project/www/index.php" language="PHP" xdebug:language_version="7.2.19-1+ubuntu16.04.1+deb.sury.org+1" protocol_version="1.0" appid="25600" idekey="PHPSTORM"><engine version="2.7.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>
[25600]
[25600] <- feature_set -i 1 -n show_hidden -v 1
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>
[25600]
[25600] <- feature_set -i 2 -n max_depth -v 1
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>
[25600]
[25600] <- feature_set -i 3 -n max_children -v 100
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>
[25600]
[25600] <- feature_set -i 4 -n extended_properties -v 1
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="4" feature="extended_properties" success="1"></response>
[25600]
[25600] <- status -i 5
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="5" status="starting" reason="ok"></response>
[25600]
[25600] <- step_into -i 6
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="6" status="break" reason="ok"><xdebug:message filename="file:///var/www/project/www/index.php" lineno="3"></xdebug:message></response>
[25600]
[25600] <- eval -i 7 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="7"><property type="bool"><![CDATA[0]]></property></response>
[25600]
[25600] <- eval -i 8 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="8"><property type="bool"><![CDATA[1]]></property></response>
[25600]
[25600] <- eval -i 9 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="9"><property type="string" size="16" encoding="base64"><![CDATA[aW1hbmFnZXJlbnQudGVzdA==]]></property></response>
[25600]
[25600] <- eval -i 10 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="10"><property type="string" size="3" encoding="base64"><![CDATA[NDQz]]></property></response>
[25600]
[25600] <- eval -i 11 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[25600] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="11"><property type="string" size="1" encoding="base64"><![CDATA[Lw==]]></property></response>
[25600]

可能是什么原因?最初,我在xdebug 2.8-dev版本上遇到了这个问题,但是后来我决定降级到最后一个稳定版本,但问题仍然存在。

为什么Xdebug没有关闭连接并且如果我没有设置任何断点也不允许执行我的脚本?

0 个答案:

没有答案