CentOS 6.2 安装Xdebug


php调试环境安装
yum -y install php-devel

http://www.xdebug.org 下载xdebug-2.1.1.tar.gz

tar zxvf xdebug-2.1.1.tar.gz
cd xdebug-2.1.1
./configure --prefix=/usr/xdebug-2.1.1
在 /etc/php.ini中添加
[Xdebug]
zend_extension ="/usr/local/php5/xdebug/xdebug.so"
xdebug.profiler_enable=on
xdebug.trace_output_dir="/usr/local/php5/xdebug/"
xdebug.profiler_output_dir="/usr/local/php5/xdebug/"
xdebug.remote_enable=on       
xdebug.remote_handler=dbgp
xdebug.remote_host=localhostxdebug.remote_port=9999

相关内容