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
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第1张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第2张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第3张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第4张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第5张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第6张图片
    phpstorm 2021.2 配置wsl + xdebug调试tp框架_第7张图片
    image.png

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

phpstorm 2021.2 配置wsl + xdebug调试tp框架_第8张图片

看效果

phpstorm 2021.2 配置wsl + xdebug调试tp框架_第9张图片

你可能感兴趣的:(phpstorm 2021.2 配置wsl + xdebug调试tp框架)