phpstorm php7 debug

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

电脑中的phpstorm一直作为ide编码使用,debug功能之前好用过 后来升级到php7以后就不好用了,现在重新配置了一下

1,开启xdebug

https://xdebug.org/download.php

下载合适的dll文件,放到ext目录下

修改php.ini开启加载xdebug插件

[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\PHPTutorial\tmp\xdebug"
zend_extension="D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug.dll"
xdebug.remote_enable =1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM

完事之后在phpinfo实验一下:


找到了xdebug信息,插件加载成功!

2.设置phpstorm

设置php开发环境


这里面如果多个的话版本不能选错了,如果列表中没有版本的话点击右侧的三个小点增加一个

设置server


xdebug端口


代理


增加配置




打断点,点监听,点甲壳虫debug即可





猜你喜欢

转载自blog.csdn.net/u010615629/article/details/81033613