Xdebug 3.0 在单步执行或单步执行时向应用程序发送停止信号

Xdebug 3.0 sends stop signal to application on step over or step into

所以出于某种原因,本地环境调试器停止为我工作。 如果我禁用了调试器,脚本 运行 没问题。 但是一旦我启用调试器并命中断点,应用程序就会收到关闭信号。 这是来自单个 运行:

的 xdebug 日志

这是xdebug.log

的最后几行
[22776] [Step Debug] <- step_over -i 282
[22776] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="282" status="stopping" reason="ok"></response>

[22776] [Step Debug] <- run -i 283
[22776] Log closed at 2022-03-22 11:46:15.011006

这里是 php.ini xdebug 配置

[xdebug]
zend_extension="c:/wamp64new/bin/php/php7.3.33/zend_ext/php_xdebug-3.1.1-7.3-vc15-x86_64.dll"
;xdebug.mode allowed are : off develop coverage debug gcstats profile trace
xdebug.mode = debug
xdebug.remote_enable = 1
xdebug.remote_host = "localhost"
xdebug.output_dir ="c:/wamp64new/tmp"
xdebug.show_local_vars=0
xdebug.log ="c:/wamp64new/logs/xdebug.log"
xdebug.log_level =7

几个小时以来,我一直在为此苦苦思索,甚至找不到可以远程解决问题的方法。

Xdebug 3.1.1 有一些错误已在 Xdebug 3.1.2 and 3.1.3. In this case. I would recommend to upgrade Xdebug to the latest version, which is at the time of me writing this answer: Xdebug 3.1.3 中修复。