Home  >  Article  >  Backend Development  >  PHPStorm + Xdebug + Chrome Xdebug Help

PHPStorm + Xdebug + Chrome Xdebug Help

WBOY
WBOYOriginal
2016-06-23 13:08:13985browse

一、配置php+Xdebug 

在php.ini 文件加上

[XDebug]zend_extension = "D:\xampp\php\ext\php_xdebug.dll" //xdebug 动态库文件路径xdebug.profiler_append = 0xdebug.profiler_enable = 1xdebug.remote_enable = on

二、PHPStorm配置

1、配置php

2、配置debug

三、Chrome Xdebug Help

1.安装chrome扩展 Xdebug helper。(需要翻墙)

2.进入 Xdebug hepler 的配置选项中,选择 IDE key 为 PHPStorm。

3.打开你的 PHPStorm 并设置一个测试断点并开启右上角监听按钮。如图

4、然后在谷歌浏览器访问,把扩展调整为 debug 模式,如图

5.刷新你刚才的页面就会发现弹出了个对话框并且已经开始调试了。选择你调试的主页面入口文件路径即可

6、最终效果如图。可以尽情的调试你的代码。



就是如此简单的操作,需要的时候点开 chrome 的扩展 Xdebug 设置为 debug 即可让你随时调试你的页面。

觉得不错的同学多点赞哈!有问题的同学随时留言。



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn