1. 查看phpstudy 位数,和是否 NTS,TS 2. 去下载对应的xdebug .dll 文件3. 打开php.ini 配置,路径改成自己!![XDebug]xdebug.remote_enable=1 # 开启远程调试xdebug.idekey=‘PHPSTORM’ # sessionkeyxdebug.remote_port=9001 # 远程调试通信端口xdebug.profiler_output_dir=“C:phpStudyPHPTutorialtmpxdebug"xdebug.trace_output_dir=“C:phpStudyPHPTutorialtmpxdebug"zend_extension=“C:phpStudyPHPTutorialphpphp-7.1.13-ntsextphp_xdebug-2.7.0-7.1-vc14-nts.dll"4. phpstorm 配置 xdebug,打开设置搜索xdebug 更改端口改成9001避免fast-cgi 端口冲突 5. chrome 下 xdebug helper 扩展,然后选择他再开启他变成绿色6. 最后去开启phpstorm里面的监听(小电话)end 访问网址即可调出调试选择!!