先使用pathinfo()看是否按照了xdebug

phpstorm设置断点调试

1.查看pathinfo源码

phpstorm设置断点调试

2.将源码全部复制到下面这个框中

网址:https://xdebug.org/wizard.php

phpstorm设置断点调试 

 3.会提示你安装适合你的环境(不认识的去翻译)

phpstorm设置断点调试

4.打开php.ini文件,将这些文件放里边

/*
author:咔咔
wechat:fangkangfk
*/

xxdebug.idekey=PhpStorm
xdebug.remote_enable = On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey="PHPSTORM"  # xdebug 运行环境
zend_extension = "D:\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug-2.6.1-7.0-vc14-nts.dll"

 5.phpstorm软件配置phpstorm设置断点调试

phpstorm设置断点调试 

6.配置完之后就可以进行断点调试了

phpstorm设置断点调试 

这也是小编第一次配置断点调试,后边对断点调试要是有更好的理解和优化的时候,再继续优化这篇文章

相关文章: