In Xdebug v3 if I change a breakpoint while step debugging I get nginx 502 Bad Gateway

99封情书 提交于 2020-12-26 08:32:41

问题


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.

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 settings

xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=true
xdebug.max_nesting_level=1500

Environment variable for Xdebug session set in docker:

XDEBUG_SESSION: docker


回答1:


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).

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 has been released.



来源:https://stackoverflow.com/questions/65040682/in-xdebug-v3-if-i-change-a-breakpoint-while-step-debugging-i-get-nginx-502-bad-g

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!