Manual xdebug configuration tutorial in Windows

Source: Internet
Author: User
Tags php source code

Introduction: This is a detailed page of xdebug manual configuration tutorial in windows. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 327025 'rolling = 'no'>

Xdebug is a PHP tutorial
Code Debugging tool Program The debugging program is very helpful. The following describes the configuration of xdebug in windows.
1. Download xdebug binary: http://www.xdebug.org/download.php
5.2 http://www.xdebug.org/files/php_xdebug-2.1.0-5.2-vc6.dll
5.3 http://www.xdebug.org/files/php_xdebug-2.1.0-5.3-vc6.dll
2. Find PHP. ini.
3. If zendoptimizer has been configured, You need to first block configurations related to zendoptimizer, which are generally as follows:
[Zend]
Zend_extension_manager.optimizer_ts = "pathzendoptimizer-3.3.0liboptimizer-3.3.0"
Zend_extension_ts = "pathzendoptimizer-3.3.0libzendextensionmanager.dll"
4. Add the xdebug Configuration:
Zend_extension_ts = "path/xdebug/php_xdebug-2.1.0-5.2-vc6.dll"
[Xdebug]
Xdebug. profiler_enable = on
Xdebug. trace_output_dir = "pathxdebug"
Xdebug. profiler_output_dir = "pathxdebug"
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9000
Note: The above "path" must be changed to your local path.
5. Restart Apache or IIS.
6. view the output of phpinfo. If the xdebug option is displayed, the configuration is successful.

Parameter description:
Zend_extension_ts = "C:/webserver/PhP5/EXT/php_xdebug.dll"
Load the xdebug module. You cannot use the extension = php_xdebug.dll method to load the file. You must use the Zend method to load the file. Otherwise, phpinfo cannot display the xdebug item after installation.
Xdebug. auto_trace = on;
Automatically enable the "monitor function call process" module. This function outputs the monitoring information of function calls in a file in the specified directory. The default value of this configuration item is off.
Xdebug. collect_params = on;
To enable the function of collecting "function parameters. Include the parameter values of function calls in the monitoring information of function process calls. The default value of this configuration item is off.
Xdebug. collect_return = on
; Enable the function to collect "function return values. Include the return value of a function in the monitoring information of function call. The default value of this configuration item is off.
Xdebug. trace_output_dir = "C: tempxdebug"
Set the path of the output file of the function call monitoring information.
Xdebug. profiler_enable = on
; Enable the Performance Monitor.
Xdebug. profiler_output_dir = "C: tempxdebug ";
Set the path of the output file of performance monitoring information.
There are some more specific parameter settings, see: http://www.xdebug.org/docs-settings.php

Install wincachegrind
Because the content of the performance monitoring file cachegrind. Out. ×××××××× is not easily understood by humans, we need a tool to read it. Windows has such a software: wincachegrind.
1. Go to http://sourceforge.net/projects/wincachegrind/download and install wincachegrind
2. After installing and running the tool, Click Tools> options to set the value of xdebug. profiler_output_dir in your working folder (PHP. INI)
In this way, you can intuitively view the information of the performance monitoring file.
After xdebug is configured, the error information on the PHP page is more user-friendly and displayed in the form of a page table.

More articles on "xdebug manual configuration tutorial for Windows"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/327025.html pageno: 12.

Related Article

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.