PHPStudy开启XDebug扩展

首先打开php.ini

CTRL+F搜索xdebug

PHPStudy开启XDebug扩展_第1张图片

将;去掉并进行配置

xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_port=9000
# 开启所有站点xdebug调试
xdebug.remote_connect_back=1

我们只是进行简单的配置,xdebug的配置非常丰富,详细可以查看官方配置说明文档:https://xdebug.org/docs/all_settings,配置完成之后,需要保存,然后重启服务器(Apache或者nginx),然后在 phpinfo(); 中检查是否安装成功。

PHPStudy开启XDebug扩展_第2张图片

到这里XDebug就已经开启了

你可能感兴趣的:(PHP)