Xdebug is integrated with CentOS 6.x in CentOS 6.x, yum install php-pecl-xdebug if CentOS.5 may also install the rpm-ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm by installing epel and then yum install php-pecl-xdebug again in php. add xdebug content to the ini configuration file. For php installed in yum, the default path is/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