选择容器的php解析
![在这里插入图片描述](https://img-blog.csdnimg.cn/ff6fabad3acb4fe4a8cbdffb5b1e5199.png)
配置xdeug
![在这里插入图片描述](https://img-blog.csdnimg.cn/c020a93fc2a94535a844040f90403380.png)
配置服务
![在这里插入图片描述](https://img-blog.csdnimg.cn/9aa91e44d82e4d3f90a3f9cf00254986.png)
开启监听
![在这里插入图片描述](https://img-blog.csdnimg.cn/2458a172d8ab49929e95274ae173a65f.png)
phpstorm会监听9001端口,接受数据
php.ini配置
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_host = host.docker.internal
xdebug.remote_port = 9001
xdebug.remote_connect_back=0
xdebug.remote_autostart=1
xdebug.remote_log = /data/logs/xdebug.log