xdebug
eclipseを使うことでブレークポイントで止めたりすることができる。
設定
インストール
xdebugを使えるようにする。
Linuxなら
pecl install xdebug
Windowsの場合は、XAMPPとかに付いてくる。もしない場合は
http://xdebug.org/download.php
からダウンロードする。
php.ini
zend_extension=xdebug.so <- windowsの場合、絶対パスで xxxx.dll xdebug.remote_enable= on
必要に応じて
xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000
あたりを追加。多くの場合は不要。
エラーが出る場合
Apache HTTP Server は動作を停止しました が表示される
VCのランタイムをインストールし直す。
[通知用URL]
Tweet
最終更新時間:2014年11月30日 19時21分20秒