Php xdebug assembly (windows)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.