1.打开php.ini文件
zend_extension = “D:\xampp\php\ext\php_xdebug.dll”
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=“PHPSTORM”
在末尾处添加上这一段 php_xdebug.dll 这个文件PHP自带了不需要再去下载,只需要配置一下路径就好了
2.保存文件
保存文件然后重启服务phpinfo()
即开启成功,如果按照配置文件了,没看到可以重启看看存不存在。