阅读(2203) (6)

Laravel 8 自动启动 Xdebug

2021-06-22 14:02:09 更新

当发送请求到 Web 服务器的调试功能进行测试时,自动启动调试要比通过自定义头或修改 cookie 以触发调试过程要方便得多。要设置 Xdebug 自动启动,请参照如下的配置修改您的 Vagrant box 中的 /etc/php/7.x/fpm/conf.d/20-xdebug.ini 文件:

; If Homestead.yaml contains a different subnet for the IP address, this address may be different...
xdebug.remote_host = 192.168.10.1
xdebug.remote_autostart = 1