How to add Xdebug extension in PHP

Source: Internet
Author: User
This article mainly introduces how to add Xdebug extensions in PHP. For more information about how to download the corresponding DLL

2. Place the file in the ext folder under the PHP installation directory.

3. modify php. ini
The code is as follows:
[Xdebug]
Zend_extension = "./ext/php_xdebug-2.2.3-5.3-vc9-nts.dll"
The following are parameters:
Xdebug. auto_trace = on
Xdebug. collect_params = on
Xdebug. collect_return = on
Xdebug. trace_output_dir = "./xdebug"
Xdebug. profiler_enable = on
Xdebug. profiler_output_dir = "./xdebug"

Note:

Xdebug. trace_output_dir = "./xdebug" is to put the debugging file in the xdebug folder under the PHP installation directory. therefore, create an xdebug folder under the PHP installation directory.

Xdebug. profiler_output_dir = "./xdebug" is to place the debugging file in the xdebug folder of the running Project. therefore, create an xdebug folder in the project directory.

Test

Create a php file
The code is as follows:
TestXdebug ();
Function testXdebug (){
Require_once ('ABC. php ');
}
?>

Run the command to check whether the file is generated in the xdebug folder under the php installation directory. if the file is generated, the installation is successful.

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.