在 Xdebug v3 中,如果我在逐步调试时更改断点,我会得到 nginx 502 Bad Gateway [英] In Xdebug v3 if I change a breakpoint while step debugging I get nginx 502 Bad Gateway
问题描述
我在 Docker 中运行 PHP 7.4.我可以很好地进行单步调试,但是,与 Xdebug v2 不同的是,如果我在单步调试时添加断点或删除断点,我会从 nginx 收到 502 Bad Gateway 消息,并且单步调试会话刚刚结束.
I'm running PHP 7.4 in Docker. I am able to step debug just fine, however, unlike in Xdebug v2 if I add a breakpoint or remove a breakpoint while step debugging I am getting a 502 Bad Gateway message from nginx and the step debugging session just dies.
我是否缺少 Xdebug v3 的设置,以便在不终止会话的情况下逐步调试时设置新断点或删除断点?
Am I missing a setting for Xdebug v3 in order to set new breakpoints or remove breakpoints while step debugging without killing the session?
php.ini 设置
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=true
xdebug.max_nesting_level=1500
在 docker 中设置的 Xdebug 会话的环境变量:
XDEBUG_SESSION: docker
推荐答案
这是 Xdebug 问题:https://bugs.xdebug.org/view.php?id=1897(https://bugs.xdebug.org/view.php?id=1899 是重复的.
It's Xdebug issue: https://bugs.xdebug.org/view.php?id=1897 (https://bugs.xdebug.org/view.php?id=1899 is a duplicate of that).
表示已针对下一个 Xdebug v3.0.1 进行了修复(如果可以并且现在需要,您可以从源代码构建).
Says fixed for next Xdebug v3.0.1 (you can build from sources if you can and need it now).
UPDATE 2020-12-04: Xdebug 3.0.1 已发布.
UPDATE 2020-12-04: Xdebug 3.0.1 has been released.
这篇关于在 Xdebug v3 中,如果我在逐步调试时更改断点,我会得到 nginx 502 Bad Gateway的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!