- 安装xdebug
1.1使用phpinfo查看配置信息
![这里写图片描述](https://img-blog.csdn.net/20180525180021960?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pzaGRk/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
1.2根据php版本和vc版本和位数(x86对应32位)在[这里写链接内容](https://xdebug.org/download.php%20dll%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80)这里下载对应的dll
1.3配置xdebug拓展
//打开php.ini将以下内容放入最下方重启web服务。phpinfo查看模块有xdebug就成功了
[Xdebug]
zend_extension=F:\php\php-7.2.1-nts\ext\phpx-debug.dll
xdebug.profiler_enable=On
xdebug.auto_trace=on
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.remote_enable = 1
xdebug.remote_port=9000
xdebug.remote_handler = dbgp
xdebug.remote_host = ad.zhou.com
xdebug.var_display_max_depth = 10
- 配置phpstrom
2.1 打开设置
CTRL+ALT+S快捷键或者FILE->Settings打开设置
2.2 设置 debug
Languages&Frameworks->Debug
2.3 配置php-server
2.4 DBGp-proxy配置
2.5 启动配置
2.6 测试
调试实际项目时候需要设置两个路径