xdebug调试成功记录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lyb8010/article/details/83045774

xdebug调试成功记录

一、环境

1、按xdebug.org官网的提示需要PHP7.0以上

2、win10

3、PHPSTUDY 

二、设置
1、https://xdebug.org/download.php中点击 custom installation instructions,然后将phpinfo();函数获取的信息粘贴到文本框,系统自动分析对应的xdebug版本并下载

2、将xdebug放到对应的PHP版本的ext文件夹下


3、对应PHP版本的php.ini最底部配置
zend_extension = D:\phpStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug-2.6.1-7.0-vc14-nts.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_idekey="PHPSTORM"


4、PHPSTORM中配置好后,在浏览器刷新页面则进入调试页面。

参考文档 https://coding.imooc.com/lesson/97.html#mid=3320

猜你喜欢

转载自blog.csdn.net/lyb8010/article/details/83045774