phpstorm+wsl+xdebug断点调试

1:php配置
image.png

image.png

image.png

这里注意
xdebug.client_host 配置的是宿主机的ip

2:phpstorm配置

image.png

配置CLI Interpreters

image.png

配置 Path mappings

image.png

配置Servers

image.png

端口确定

image.png

配置PHP Remote Debug

3: 测试效果

image.png

开启调试

image.png

完成

评论

暂无评论