windows进行安装
首先打开nginx配置文件
[XDebug]
xdebug.profiler_output_dir="F:\soft\phpstudy\PHPTutorial\tmp\xdebug" @@@xdebug调试文件的目录
xdebug.trace_output_dir="F:\soft\phpstudy\PHPTutorial\tmp\xdebug" @@@xdebug调试文件的目录
zend_extension="F:\soft\phpstudy\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug-2.6.0-7.1-vc14-nts.dll" @@@xdebug扩展文件位置
xdebug.remote_enable=on @@@是否开启
xdebug.profiler_enable_trigger=0
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.remote_host=localhost @@@监听地址
xdebug.remote_port=9002 @@@监听端口号
xdebug.idekey = phpstorm @@@配置的key跟google的安装的扩展有用
其次打开phpstorm 下面的图随便拿的没有爱自己截图
参考https://blog.csdn.net/wzj0808/article/details/55223095