博客 / 詳情

返回

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

3.安裝瀏覽器擴展並設置

image.png

4.編輯一個監聽

image.png

5.添加一個遠程調試

image.png

看效果

image.png

user avatar
0 位用戶收藏了這個故事!

發佈 評論

Some HTML is okay.