phpstorm 2021.2 配置wsl + xdebug调试tp框架
文章目录
1.配置wsl里php环境并安装xdebug扩展
[XDebug]
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9001
xdebug.client_port = 9002
xdebug.idekey = "PHPSTORM"
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.mode="debug"
2.设置phpstorm
- 打开设置-》php








3.安装浏览器扩展并设置

4.编辑一个监听

5.添加一个远程调试

看效果

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论