CentOS 下安装xdebug
在CentOS 6.x 的系统中,是集成xdebug 的,
yum install PHP-pecl-xdebug
如果是CentOS.5 也可能通过安装安装 epel 来安装
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
然后
yum install php-pecl-xdebug
再在php.ini 配置文件添加xdebug 内容就可以了。如果是yum安装的php,默认路径在/etc/php.ini
[Xdebug]
zend_extension_ts =/usr/lib64/php/modules/xdebug.so
zend_extension =/usr/lib64/php/modules/xdebug.so
xdebug.auto_trace = on
xdebug.auto_profile = on
xdebug.collect_params = on
xdebug.collect_return = on
xdebug.profiler_enable = on
xdebug.trace_output_dir = "/tmp"
xdebug.profiler_output_dir = "/tmp"
xdebug.dump.GET = *
xdebug.dump.POST = *
xdebug.dump.COOKIE = *
xdebug.dump.SESSION = *
xdebug.var_display_max_data = 4056
xdebug.var_display_max_depth = 5
<script type="text/javascript"><!-- google_ad_client = "ca-pub-1944176156128447"; /* cnblogs 首页横幅 */ google_ad_slot = "5419468456"; google_ad_width = 728; google_ad_height = 90; //--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>