・apache,phpはHOME以下にカスタムインストールしてある。
export $
APACHE_DIR=${HOME}/
apache_1.3.31
export $
PHP_DIR=${HOME}/
php-4.3.8
・インストール
$
gzip -cd
xdebug-1.3.2.tgz|tar xvf -
$cd
xdebug-1.3.2
$ ${
PHP_DIR}/bin/phpize
$./configure --with-
php-config=${
PHP_DIR}/
php-4.3.8/bin/
php-config
$make install
$cp modules/
xdebug.so ${
PHP_DIR}/lib/
php/extensions/
・設定
$vi ${
PHP_DIR}/lib/
php.ini
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; for
Xdebug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extension=${
PHP_DIR}/lib/
php/extensions/
xdebug.so
xdebug.dump.GET=*
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.dump_undefined=on
xdebug.show_local_vars=on
xdebug.show_mem_delta=on
xdebug.profiler_enable=on
;
xdebug.auto_profile=1
;
xdebug.auto_profile_mode=1
;
xdebug.output_dir=${HOME}/tmp/
php_proflog
;
xdebug.remote_enable=on
${
APACHE_DIR}/bin/apachectl restart
・info.
php() で
xdebugが有効であることを確認する。