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

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/58044.html