0

PHPでXDebugを設定しようとしています。http://xdebug.org/から XDebug DLL をダウンロードします。考えられるすべてのバージョンを試し、それが示唆するように php.ini を編集しましたが、使用phpinfo()して xdebug 情報を表示すると、何も得られません。何か案は?

私の環境は PHP 5.4 + Apache2.2 + Windows 7 です。

4

1 に答える 1

2

まず、xDebug サイトの次の手順に従って、モジュールを正しくインストールします (これは完了したと思います!.ウィザードを使用してください!! )。( http://xdebug.org/wizard.php )

を実行するphpinfo()と、次のように表示されます (正しくインストールされている場合)。

This program makes use of the Zend Scripting Language Engine: 
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans <-- !! :D !!

次に、以下を に追加する必要がありますphp.ini

[xdebug]
# Make sure the below path is correct and points to your 'xdebug.so'
zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.default_enable=1
xdebug.max_nesting_level=100
xdebug.remote_autostart=on 
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug" # I use netbeans IDE, so I configure this

注意:変更を行った後php.iniは、Apache サーバーを再起動する必要があります。

于 2013-01-04T15:20:16.387 に答える