Home  >  Article  >  Backend Development  >  Installation and use of php Xdebug debugging extension._PHP tutorial

Installation and use of php Xdebug debugging extension._PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:39:45825browse

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

http: //www.bkjia.com/PHPjc/321520.htmlTechArticleXdebug When installing and downloading the xdebug extension, please note that the xdebug version corresponds to the php version, otherwise unnecessary trouble will occur! I use PHP5.2.5 myself. The downloaded xdebug file is named: ...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn