phptorm、chrome安装调试 xdebug

1、检测php 版本,添加 .dll 文件

https://xdebug.org/wizard.php

这个页面可以让你见自己phpinfo()输出来的内容,复制过来,然后通过analyse判断出需要的资源。以及如配置信息等。

下载安装相应的 .dll 文件,放到相应的目录下。


2、为chrome 浏览器安装 xdebug helper 插件

百度搜索 xdebug helper ,自己查怎么安装这个插件


3、配置  xdebug helper 

在浏览器中,右键点击xdebug helper图标 ,选择‘选项’,选phpstorm


4、php.ini中修改

注意 .dll 和 端口号(全称的端口号要统一!!!)

[xdebug]
zend_extension = 、、、、、.dll
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM


5、配置phpstorm

5.1、phpstorm中的配置

file > setting  > languages&frameworks > PHP

phptorm、chrome安装调试 xdebug


phptorm、chrome安装调试 xdebug


5.2、具体项目中的配置

添加一个调试的实例

phptorm、chrome安装调试 xdebug


6、其他

简单编写,具体怎么启动网上大把。有时间在完善、、、、