1、phpstorm>file>setting
搜索xdebug,修改debug port 为一个没有被占用的端口 比如9100
2、打开当前应用使用的 php.ini,设置 remote_enable = on ,xdebug.remote_port=9100 ,保存并重启nginx或apache即可