1、按这流程安装
https://blog.csdn.net/wzj0808/article/details/55223095
php_xdebug-2.8.0alpha1-7.2-vc15-nts.dll
2、如果出现 ide key ‘156578’ 什么的 先关闭防火墙 就ok
3、如果phpinfo 没有Xdebug(如果phpinfo 存在xdebug就跳过这一步)
就是版本不对 查找对应的版本下载 然后放入对应的文件夹
https://xdebug.org/download.php 要根据你的php版本来下载
原文链接: https://blog.csdn.net/21aspnet/article/details/54808850
4、在php.ini最底部增加
xdebug.remote_port=9000
xdebug.remote_enable=on
xdebug.remote_handler = dbgp
5、安装插件 xdebug helper
下载地址:https://code.dlx520.com/thinkphp-51.html
6、设置PHP remote debug 即可