选择正确的Xdebug版本

访问地址:http://xdebug.org/wizard.php

将本地PHPinfo的信息放入输入框 然后点击 Analyse my phpinfo() output

会显示如下信息(根据个人环境不同显示有所不同)

ummary

  • Xdebug installed: 2.5.4
  • Server API: Apache 2.0 Handler
  • Windows: yes - Compiler: MS VC11 - Architecture: x86
  • Zend Server: no
  • PHP Version: 5.6.26
  • Zend API nr: 220131226
  • PHP API nr: 20131226
  • Debug Build: no
  • Thread Safe Build: yes
  • Configuration File Path: C:\Windows
  • Configuration File: E:\AppServ\php5\php.ini
  • Extensions directory: E:\AppServ\php5\ext

    You're already running the latest Xdebug version

    But here are the instructions anyway:

    1. Download php_xdebug-2.5.4-5.6-vc11.dll
    2. Move the downloaded file to E:\AppServ\php5\ext
    3. Update E:\AppServ\php5\php.ini and change the line
      zend_extension = E:\AppServ\php5\ext\php_xdebug-2.5.4-5.6-vc11.dll
    4. Restart the webserver

    根据上面步骤1下载扩展2将扩展文件放入扩展文件夹3修改配置文件4重启web服务器

    配置Xdebug

    [Xdebug]  
    ;指定Xdebug扩展文件的绝对路径  
    zend_extension = E:\AppServ\php5\ext\php_xdebug-2.5.4-5.6-vc11.dll
    ;启用性能检测分析  
    xdebug.profiler_enable=on  
    ;启用代码自动跟踪  
    xdebug.auto_trace=on  
    ;允许收集传递给函数的参数变量  
    xdebug.collect_params=on  
    ;允许收集函数调用的返回值  
    xdebug.collect_return=on  
    ;指定堆栈跟踪文件的存放目录  
    xdebug.trace_output_dir="D:/debug"  
    ;指定性能分析文件的存放目录  
    xdebug.profiler_output_dir="D:/debug"  
    xdebug.profiler_output_name = cachegrind.out.%t.%p  



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值