php7.2nts安装Xdebug

https://my.oschina.net/u/3826187/blog/2250188

环境用的是phpstudy2018

1、使用phpinfo()查看自己php的信息

2、官方下载 Xdebug
注意必须要安装和自己使用 php 版本同版本的 Xdebug,不然会出现扩展加载失败

Xdebug官网
3、把 Xdebug 的 dll 放到 php 相关目录下面
4、在 php 配置文件 php.ini 的最后加上以下代码

[XDebug]
xdebug.profiler_output_dir="F:\PHP\phpstudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="F:\PHP\phpstudy\PHPTutorial\tmp\xdebug"
zend_extension="F:\PHP\phpstudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.6.1-7.2-vc15-nts.dll"

xdebug.remote_enable = 1
xdebug.remote_autostart = 1

5、检查 php 扩展中是否已开启 Xdebug
php -m
如果一切正常的话是这个样子的
php7.2nts安装Xdebug_第1张图片
如果版本错误的话 就会Failed loading

你可能感兴趣的:(PHP)