Xdebug安装对应版本与配置
Xdebug安装地址https://xdebug.org/download.php,进入下载页面后点击custom installation instructions,可以找到适合的Xdebug版本。
如果你点击了custom installation instructions,会进入下面的页面,把本地运行phpinfo()后的页面的html源代码复制粘贴到输入框,点击下面的Analyse my phpinfo() output提交即可。
会跳到类似这样的页面,因为我已经安装,所以显示XDEBUG版本
1.下载php_xdebug-2.5.4-5.6-vc11-nts.dll
2.将下载的文件移动到“C:\ Program Files(x86)\ PHP \ v5.6 \ ext”
3.更新C:\Program Files (x86)\PHP\v5.6\php.ini
并更改行zend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll"
4.重新启动网络服务器
通过phpinfo()可以看到xdebug已安装!!!
附上本人在php.ini的XDebug的配置信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | [XDebug] ;调试功能模块儿 ;extension=php_xdebug-2.2.5-5.3-vc9.dll zend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll" xdebug.remote_handler=dbgp xdebug.idekey=PHPSTORM ;开启远程调试 xdebug.remote_enable = On ;远程主机 xdebug.remote_host=localhost ;主机端口 xdebug.remote_port=9001 ;开启自动跟踪 xdebug.auto_trace = On ;开启异常跟踪 xdebug.show_exception_trace = On ;开启远程调试自动启动 xdebug.remote_autostart = On ;收集变量 xdebug.collect_vars = On ;收集返回值 xdebug.collect_return = On ;收集参数 xdebug.collect_params = On ;临时跟踪信息输出 ;xdebug.trace_output_dir= "d:/PHP/php-5.3.28/temp" ;显示局部变量 xdebug.show_local_vars = On xdebug.profiler_enable = On ;xdebug.profiler_output_dir = "d:/PHP/php-5.3.28/temp" xdebug.trace_enable_trigger =On |
主机端口 xdebug.remote_port=9001
编辑器key xdebug.idekey=PHPSTORM
这两个这么配置是为了避免与fpm冲突和后面与phpstorm一同使用
phpstorm配置Xdebug链接:http://www.cnblogs.com/cxscode/p/7045944.html
版权声明:本文为博主原创文章,未经博主允许不得转载。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· 因为Apifox不支持离线,我果断选择了Apipost!