wamp安装xdebug特殊状况win7 64位安装32位wamp

在wamp上安装xdebug网上不少文章都介绍了方法,可是我这里遇到了一个很特殊的状况,在网上不多有人说起:php

我机器是win7 64位的,安装的wamp1.7.4是32位的,这是后来致使出现奇怪现象的根源。html

按照网上提供的方法以下:web

进入xdebug网站,选择测试phpinfo()信息,注意这里不是采用贴源码的方式,是采用贴显示出的html文字的方式。安全

根据测试的信息,个人信息以下:测试

Summary

  • Xdebug installed: no
  • Server API: Apache 2.0 Handler
  • Windows: yes - Compiler: MS VC9 - Architecture: x86
  • Zend Server: no
  • PHP Version: 5.2.5
  • Zend API nr: 220060519
  • PHP API nr: 20060613
  • Debug Build: no
  • Thread Safe Build: yes
  • Configuration File Path: C:\Windows
  • Configuration File: D:\wamp\Apache2\bin\php.ini
  • Extensions directory: d:\wamp\php\ext

注意这里看到咱们的编译器为VC9,而后个人php版本是5.2.5,并且是线程安全的所以,我就很容易去找到PHP 5.2 VC9 TS (32 bit) ,结果下载下来,按以下的配置网站

[Xdebug]
zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.2.3-5.2-vc9.dll"
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.trace_output_dir="d:/wamp/php/debuginfo"
xdebug.profiler_enable=On
xdebug.profiler_output_dir="d:/wamp/php/debuginfo"ui

结果很悲催,重启webserver后,phpinfo一闪就关闭了,尝试了64位,nts各类方式都不行,要么是phpinfo关闭,要么就是xdebug不出现。线程

 

后来很偶然,我尝试了使用vc6的编译版本,就是zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.1.2-5.2-vc6.dll",结果经过了,一会儿终于明白了,debug

其实本身是被误导了,虽然机器是64位的,可是调用组件仍是使用的vc6的版本进行编译的,至此,作个提醒,但愿安装32位的注意。server

相关文章
相关标签/搜索