Php xdebug installation (windows) written in front: & nbsp; & nbsp ;$ {PHP_PATH}: directory where the php compilation file is located 1. download xdebug (select xdebug compatible with your PHP version) & nbsp; www. xdebug. comdownload. php2. install the downloaded xdebug of php_xde php (windows)
Preface:
$ {PHP_PATH}: Directory of the php compilation file
1. download xdebug (select xdebug compatible with your PHP version)
Http://www.xdebug.com/download.php
2. Place the downloaded php_xdebug_xxx.dll in the $ {PHP_PATH}/ext/directory.
3. configure xdebug in php. ini (php. ini is in the $ {PHP_PATH} directory)
(1) add the following configuration:
Zend_extension = "$ {PHP_PATH}/ext/php_xdebug.dll"
[Xdebug]
Xdebug. auto_trace = on
Xdebug. collect_params = on
Xdebug. collect_return = on
Xdebug. trace_output_dir = "$ {PHP_PATH}/xdebug"
Xdebug. profiler_enable = on
Xdebug. profiler_output_dir = "$ {PHP_PATH}/xdebug"
(2) if ZendOptimizer has been configured, you need to first shield configurations related to ZendOptimizer, which are usually as follows (just comment)
[Zend]
Zend_extension_manager.optimizer_ts = "path \ ZendOptimizer-3.3.0 \ lib \ Optimizer-3.3.0"
Zend_extension_ts = "path \ ZendOptimizer-3.3.0 \ lib \ ZendExtensionManager. dll"
4. restart IIS/Apache
5. write a test. php file with the content If xdebug is displayed in the output, the installation and configuration are successful. As follows:
Note: Do not be discouraged if the configuration is not successful. check the configuration path because Zend has not been fully annotated or the file path is incorrect. O (Partition _ partition) O