2013-09-29 42 views
1

我使用的PHP版本5.4.14我試圖在Windows 8安裝了XDebug和IIS 8

,我不能安裝Xdebug的

Xdebug installed: no 
Server API: CGI/FastCGI 
Windows: yes - Compiler: MS VC9 - Architecture: x86 
Zend Server: no 
PHP Version: 5.4.14 
Zend API nr: 220100525 
PHP API nr: 20100525 
Debug Build: no 
Thread Safe Build: no 
Configuration File Path: C:\Windows 
Configuration File: C:\Program Files (x86)\IIS Express\PHP\v5.4\php.ini 
Extensions directory: C:\php 

這是我的php.ini

[Xdebug] 
;zend_extension= C:\php\php_xdebug-2.2.3-5.4-vc9-nts-x86_64.dll 
zend_extension= C:\php\php_xdebug-2.2.2-5.4-vc9-x86_64.dll 
xdebug.remote_enable=1 
xdebug.remote_host= localhost 
xdebug.remote_port=9000 
xdebug.idekey="netbeans-xdebug" 

我試過版本2.2.3和2.2.2沒有成功

我沒有使用apache;我使用的Windows 8

'的iis 8的NetBeans其安裝有笨 工作時,我嘗試調試它總是這樣

等待連接(於NetBeans的XDebug)

任何想法?

+0

你的phpinfo()對xdebug有何評論? 它只是調試不起作用嗎?或者如何處理錯誤? – mewm

+0

phpinfo說,xdebug它沒有安裝 – pedro

+1

將你的phpinfo()粘貼到這裏,並按照這些說明:http://xdebug.com/wizard.php – mewm

回答

1

我設法XDebug的工作IIS 10在Windows 10的x64與PHP 7.1如下:

啓動命令提示符以管理員身份,然後鍵入以下內容:

php -i > C:\php.txt 

轉到https://xdebug.org/wizard.php和粘貼在C:\ php.txt的內容中。

按照指示下載哪個版本的XDebug,並注意它告訴你添加到你的php.ini文件中的那一行。

我的php.ini看起來像這樣(我手動輸入此信息):

[XDebug] 
; XDEBUG Extension 
zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug-2.5.0-7.1-vc14- nts-x86_64.dll" 
xdebug.remote_enable = on 
xdebug.remote_handler = dbgp 
xdebug.remote_host = localhost 
xdebug.remote_port = 9000 
xdebug.profiler_enable = off 
xdebug.profiler_enable_trigger = off 
xdebug.profiler_output_name = cachegrind.out.%t.%p 

早在命令提示符下鍵入IISRESET重新啓動IIS,並導致PHP重裝。

+0

這讓我在2分鐘內運行起來。謝謝! –