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.装置浏览器扩大并设置

看成果