Http://www.cnblogs.com/qiantuwuliang/archive/2011/01/23/1942382.html
xdebug Installation Tips : If you do not know the installed PHP version, you can see through the phpinfo () function, while Xdebug also provides Phpinfo output information analysis tool to help you analyze how to install Xdebug, Just copy and submit the Phpinfo output information, address: Xdebug phpinfo Information Analysis address--http://xdebug.org/wizard.php
Instructions
- Download xdebug-2.2.6.tgz
- Unpack the downloaded file with
tar -xvzf xdebug-2.2.6.tgz
- Run:
cd xdebug-2.2.6
Run: (See the FAQs If you don't have any phpize
phpize
.
As part of the its output it should show:
Configuring for: ... Zend Module API No: 20090626Zend Extension API No: 220090626
If It does not, you are using the wrong phpize
. Please follow this FAQ entry and skip the next step.
- Run:
./configure
- Run:
make
- Run:
cp modules/xdebug.so /usr/lib/php5/20090626+lfs
- Update and change the line
/etc/php5/fpm/php.ini
zend_extension = /usr/lib/php5/20090626+lfs/xdebug.so
- Restart the Webserver
Xdebug section configuration Options Description
Xdebug.auto_trace = 1
Whether to allow Xdebug trace function calls, trace information is stored as a file, the default value is 0
Collect_params = 1
Whether the Xdebug trace function parameter is allowed, the default value is 0
Xdebug.collect_return = 1
Whether the Xdebug trace function return value is allowed, the default value is 0
xdebug.profiler_enable = 1
Open Xdebug Performance Analyzer, stored as a file, this configuration cannot be configured with the Ini_set () function, the default value is 0
Xdebug.profiler_output_dir
Where the profiling file is stored, the default value is/tmp
Xdebug.profiler_output_name
A naming convention for profiling files, with a default value of cachegrind.out.%p
Xdebug.trace_output_dir
function call trace information output file directory, default value is/tmp
Xdebug.trace_output_name
function call trace information output file naming convention, default is trace.%c
PHP Debugging Tools xdebug Installation Configuration Tutorial