1

PHP バージョン 5.4.14 を使用しています

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は、常にこのようにデバッグしようとすると、codeigniterで動作します

接続待ち (netbeans-xdebug)

何か案は?

4

2 に答える 2

1

次のように、PHP 7.1 を使用して Windows 10 x64 上の IIS 10 で XDebug を動作させることができました。

管理者としてコマンド プロンプトを起動し、次のように入力します。

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 をリロードします。

于 2017-02-23T22:37:01.280 に答える