Home >Backend Development >PHP Tutorial >Installation and use of php Xdebug debugging extension._PHP tutorial
Xdebug installation
When downloading the xdebug extension, please note that the xdebug version corresponds to the php version, otherwise unnecessary trouble will occur!
I am using PHP5.2.5. The downloaded xdebug file is named: php_xdebug-2.0.3-5.2.5.dll. Just put the file in the php/ext folder
3. Configuration
xdebug configuration
Open php.ini
Add the following configuration code in the last line, the configuration description has been commented
;Load Xdebug
zend_extension_ts="c:/php/ext/php_xdebug-2.0.4-5.2.8.dll"
;If you use a relative path, you can write like this
;extension= "php_xdebug-2.0.4-5.2.8.dll"
;xdebug configuration
[Xdebug]
;Turn on automatic tracking
xdebug.auto_trace = On
;Turn on exception tracking
xdebug.show_exception_trace = On
;Turn on automatic remote debugging
remote_enable = On
;Collect variables
xdebug.collect_vars = On
;Collect return values
xdebug.collect_return = On
;Collect parameters
🎜>Finally I wrote
[Zend]
zend_extension_manager.optimizer_ts="f:ServerCorelibOptimizer-3.3.0"
;zend_extension_ts="f:ServerCorelibZendExtensionManager. dll"
zend_extension_ts="F:ServerCorePHP5extphp_xdebug-2.0.4-5.2.8.dll"
is successful, other writing methods are not good
http://www.bkjia.com/PHPjc/321520.html
www.bkjia.com