xdebug开启调试

xdebug 2.8 (貌似3.0以下都可以)

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=host.docker.internal
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
xdebug.remote_log=var/log/xdebug.log

xdebug3.0以上

[xdebug]
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.client_port=9000
xdebug.start_with_request=yes
xdebug.log=var/log/xdebug.log

原文地址:https://www.cnblogs.com/kuangke/p/14807528.html