PHP debugging Tool xdebug using "Windows"

Source: Internet
Author: User

Installation

1. Download
Install PHP version to download the corresponding Xdebug version, xdebug official website https://xdebug.org/download.php

2. Installation
Install Xdebug in fact, like PHP configuration MySQL, is to add extension in PHP, that is, modify the php.ini file
Append in php.ini:

[Xdebug]  ; Specifies the absolute path of the Xdebug extension file  zend_extension= "E:\Develop\wamp\xdebug2.5.5\php_ Xdebug-2.5.5-5.6-vc11-x86_64.dll "  ; enable performance detection analysis  xdebug. profiler_enable=on  ; Enable code auto-tracking  Xdebug. auto_trace=  on; Allows collection of parameter variables passed to the function  xdebug. collect_params=  on; Allow collection of return values for function calls  xdebug. collect_return=  on; Specifies the storage directory for the stack trace file  xdebug. trace_output_dir= "E:\Develop\ Wamp\debug "  ; Specifies the storage directory for the profiling file  xdebug. profiler_output_dir=" E:\Develop\wamp\debug "   Xdebug. profiler_output_name = cachegrind.out.%t.%p  

Note: In the above configuration, zend_extension is used to specify the file path of the Xdebug extension module (since Xdebug is an extension based on the Zend engine, the zend_extension configuration directive must be used instead of extension. The configuration path of the Zend_extension directive must be an absolute path. The following configuration statement is the configuration parameter of Xdebug

3. Restart Apache and use Phpinfo () to view the configuration

Xdebug Configuration Instructions Official document: Https://xdebug.org/docs/all_settings

PHP debugging Tool xdebug using "Windows"

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.