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

相關文章
相關標籤/搜索