Home >Backend Development >PHP Tutorial >Xdebug installation_PHP tutorial
Xdebug installation
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 to the last line, and the configuration description has been commented
;Load Xdebug
zend_extension_ts="c:/php/ext/php_xdebug.dll"
;xdebug configuration
[Xdebug]
;Turn on automatic tracking
xdebug.auto_trace = On
;Enable exception tracking
xdebug.show_exception_trace = On
;Enable remote debugging to start automatically
xdebug.remote_autostart = On
;Enable remote debugging
xdebug.remote_enable = On
;Collect variables
xdebug.collect_vars = On
;Collect return value
xdebug.collect_return = On
;Collect parameters
xdebug.collect_params = On
Finally I wrote it in PHP.INI
[Zend]
zend_extension_manager.optimizer_ts="f:ServerCorelibOptimizer-3.3.0"
;zend_extension_ts="f:ServerCorelib endExtensionManager.dll"
zend_extension_ts="F:ServerCorePHP5extphp_xdebug.dll"
It was successful, other ways of writing are not good