2015年12月7日月曜日

xdebugの設定

xdebug本体をダウンロード
ダウンロード時注意。
X86 => 32bit OS
X64 => 64bit  OS

extのフォルダにダウンロードしたdllを入れる。
IISのFastCGIは、non thread safe
Apatche 2.xは、thread safe


php.iniに設定
[XDebug]
zend_extension = "C:\Program Files (x86)\iis express\PHP\v5.4\ext\php_xdebug-2.4.0rc2-5.4-vc9-nts.dll"
xdebug.remote_enable = 1 
xdebug.remote_host =localhost
xdebug.remote_port = 9000 
xdebug.remote_handler = dbgp
xdebug.remote_mode=req
xdebug.remote_autostart= On
xdebug.idekey=”netbeans-xdebug;netbeansで接続を待っています。となってしまうので追加。



webサーバーを再起動
C:\Program Files (x86)\iis express\PHP\v5.4\ext>php -v
PHP 5.4.24 (cli) (built: Jan  8 2014 20:26:10)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.4.0RC2, Copyright (c) 2002-2015, by Derick Rethans


with Xdebug v2.4.0RC2, Copyright (c) 2002-2015, by Derick Rethansが確認できれば設定OK

0 件のコメント:

コメントを投稿