当前位置: 首页 > 后端技术 > PHP

phpstorm2021.2配置wsl+xdebug调试tp框架

时间:2023-03-30 02:27:05 PHP

1.wsl配置php环境,安装xdebug扩展[XDebug]zend_extension=xdebug.soxdebug.remote_enable=1xdebug.remote_connect_back=1xdebug.remote_port=9001xdebug.client_port=9002xdebug.idekey="PHPSTORM"xdebug.remote_autostart=1xdebug.remote_handler="dbgp"xdebug.remote_mode="req"xdebug.mode="debug"2.设置phpstorm打开设置-》php3.安装浏览器扩展并设置看效果