PHP安装XDebug扩展

2024-10-31 10:43:54

1、打开phpinfo查看版本信息

PHP安装XDebug扩展

3、到官网下载对应版本的xdebug

PHP安装XDebug扩展

5、在php安装目录中找到php.ini配置文件,在配置文件的最低下加上:;xdebug文件所在的位置zend_extension = "D:\phpstudy\php70n\ext\php_xdebug-2.7.0alpha1-7.0-vc14-nts.dll";允许远程IDE调试xdebug.remote_enable = true;远程主机xdebug.remote_host = 127.0.0.1;默认端口 9000;xdebug.remote_port = 9000xdebug.profiler_enable = on保存后重启服务器。

PHP安装XDebug扩展
猜你喜欢