phpstorm支持xdebug断点调试
文章目录
1、安装与PHP版本相符的xdebug扩展,本文下载的是php7.3版本的
链接:http://xdebug.org/download

2、将xdebug.dll文件复制到php安装目录下
D:\phpstudy_pro\Extensions\php\php7.3.4nts\ext\php_xdebug-2.9.6-7.3-vc15-nts-x86_64.dll
3、phpstorm配置xdebug支持

4、设置远程端口

5、设置DBGP Proxy

6、配置php.ini
[xdebug]
zend_extension ="D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug-2.9.6-7.3-vc15-nts-x86_64.dll"
xdebug.remote_enable = On
xdebug.idekey=PHPSTORM
xdebug.remote_enable = On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
7、谷歌浏览器安装需要安装Xdebug helper,用户可以在chrome浏览器中的应用商店上添加Xdebug helper扩展
安装完成后点击debug图标,右键选择选项

点击debug图标,选择debug,并在phpstorm中设置断点,即可完成

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论