1.1使用phpinfo查看配置信息
![这里写图片描述](https://img-blog.csdn.net/20180525180021960?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pzaGRk/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
1.2根据php版本和vc版本和位数(x86对应32位)在[这里写链接内容](https://xdebug.org/download.php%20dll%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80)这里下载对应的dll
1.3配置xdebug拓展
zend_extension=D:\phpstudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-3.0.4-7.2-vc15-nts.dll
xdebug.mode=debug
xdebug.start_with_request=default
xdebug.client_host=localhost
xdebug.client_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
2.配置phpstorm
步骤一
步骤二
步骤三
步骤四
步骤六
打开页面触发相应的方法,进入debug模式
phpstrom中xdebug显示waiting for incoming with ide key解决办法
php.in下面文件配置错误
我的问题就是这个问题
你先看你下载的xdebug版本,我的是php_xdebug-3.0.2-8.0-vs16-x86_64
也就是版本3
所以
[XDebug]
zend_extension = D:\Xampp\php\ext\php_xdebug-3.0.2-8.0-vs16-x86_64.dll
xdebug.mode=debug
xdebug.start_with_request=default
xdebug.client_host=localhost
xdebug.client_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
如果你的是版本2
[XDebug]
zend_extension=这是你下载的dll文件存放的路径
xdebug.remote_enable=On
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM