2013-03-12 19 views
2

你能告訴我,爲什麼我不能在y PHP擴展名列表中獲得xDebug擴展? Wamp> PHP> PHP擴展不是xDebug。xDebug和舊的wps服務器與MS VC6

PHP版本:

Windows: yes - Compiler: MS VC6 - Architecture: x86 
Zend Server: no 
PHP Version: 5.3.5 
Zend API nr: 220090626 
PHP API nr: 20090626 
Debug Build: no 
Thread Safe Build: yes 
Configuration File Path: C:\Windows 
Configuration File: C:\wamp\bin\apache\Apache2.2.17\bin\php.ini 
Extensions directory: c:\wamp\bin\php\php5.3.5\ext 

The compiler (MS VC6) that this PHP was build with, is no longer supported. Please upgrade to a version that was built with MS VC9. 

所以我下載:Xdebug的2.1.2,PHP 5.3 VC6(32位)(MD5:adb792dc75c79384f987061f12e0934a) 將文件複製到ext文件夾,添加此行到PHP .ini文件:

[Xdebug] 
zend_extension = "c:/wamp/bin/php/php5.3.5/ext/php_xdebug.dll" 
xdebug.remote_enable=1 

;IP 
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000 
xdebug.remote_handler=dbgp 
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 

怎麼回事?

+0

有沒有人得到這個解決方案? – 2014-02-11 12:38:31

+0

我已經安裝了Visual C++ 9,但編譯器需要升級。怎麼做 ? – 2014-02-13 04:17:11

回答

0

這工作正常我:

[XDEBUG] 
zend_extension="c:/path/to/your/extensions/php_xdebug-2.1.2-5.3-vc6.dll" 
xdebug.remote_enable=true 
xdebug.remote_host=localhost 
xdebug.remote_port=9000 
xdebug.remote_handler=dbgp 

的重要組成部分,我是,我用zend_extension_ts代替zend_extension

您可能還想確保您正在更改正確版本的php.ini。對於命令行PHP這可以得到購買運行這個命令:

php -i | findstr -i php.ini 

尋找「加載配置文件」行。