18910140161

phpstorm 2021.2 配置wsl + xdebug调试tp框架

顺晟科技

2021-09-15 13:53:01

209

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
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png

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

image.png

看效果

image.png

相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航