1下载php_Xdebug.dll
我的wamp的php/ext 本来就有
如果没有需要到 http://www.xdebug.org/download.php 这里选择相对应的版本下载
2配置xdebug
我的配置目录在
用notepad++或者记事本打开
根据xdebug官网文档需要配置 xdebug官方文档 http://www.xdebug.org/docs/remote#browser_session
xdebug.remote_enable = on //开启远程调试
xdebug.remote_port = 9000 //ide端口
xdebug.remote_host = localhost //ide端口号
xdebug.remote = debgp //一种协议
查询ide端口号,这里用的是phpstorm
file-》setting-》搜索xdebug
xampp-》restart all server
3创建断点
创建php web application
4调试