Manual configuration and usage instructions for Windows Installer Clean up Windows Xdebug

Source: Internet
Author: User
1. Download xdebug binary file: 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 you have configured Zendoptimizer, you need to first mask the Zendoptimizer-related configuration, usually as follows:
[Zend]
Zend_extension_manager.optimizer_ts= "path\zendoptimizer-3.3.0\lib\optimizer-3.3.0"
Zend_extensi
4. Join the XDebug configuration:
Zend_extensi
[Xdebug]
Xdebug.profiler_enable=on
Xdebug.trace_output_dir= "Path\xdebug"
Xdebug.profiler_output_dir= "Path\xdebug"
Xdebug.remote_enable=on
Xdebug.remote_handler=dbgp
Xdebug.remote_host=localhost
xdebug.remote_port=9000
Description: The location above "path" needs to be modified to your own local path.
5. Restart Apache or IIS.
6. Look at the output of the phpinfo, and if you see the XDebug option, the configuration is successful.
The following are the articles of other netizens
First, install the Xdebug module
1, go to www.xdebug.org download the corresponding version of the PHP module file, save the downloaded file to the PHP ext directory, you can modify the name of the file, such as Save as: Php_xdebug.dll
2, modify the php.ini, add the following information

Copy the Code code as follows:


[Xdebug]
Zend_extensi
Xdebug.auto_trace=on
Xdebug.collect_params=on
Xdebug.collect_return=on
Xdebug.trace_output_dir= "C:/webserver/php5/debuginfo"
Xdebug.profiler_enable=on
Xdebug.profiler_output_dir= "C:/webserver/php5/debuginfo"


Parameter explanation:
Zend_extensi
; load the Xdebug module. Here can not be loaded with Extension=php_xdebug.dll way, it must be loaded in a zend way, or after installation, Phpinfo is not shown xdebug this item.
Xdebug.auto_trace=on;
Automatically turn on the "monitor function call process" mode. This function can output the monitoring information of a function call as a file in the directory you specify. The default value for this configuration item is off.
Xdebug.collect_params=on;
Open the function that collects "function parameters". The parameter values of the function call are included in the monitoring information for the Function procedure call. The default value for this configuration item is off.
Xdebug.collect_return=on
Open the function that collects the function return value. The return value of the function is included in the monitoring information of the Function procedure call. The default value for this configuration item is off.
Xdebug.trace_output_dir= "C:\Temp\xdebug"
; Sets the path of the output file for the function call monitoring information.
Xdebug.profiler_enable=on
; Open the Performance Monitor.
Xdebug.profiler_output_dir= "C:\Temp\xdebug";
Set the path of the performance monitoring information output file.
There are some more specific parameter settings, see: http://www.xdebug.org/docs-settings.php
3. Restart Apache
This way, when you run PHP locally, you will generate some debugging information in the directory you set:
function call process monitoring information file filename format: trace.xxxxxx.xt. This file can be viewed directly, containing information such as the time the function was run, the parameter value of the function call, the return value, the file and location. The content format is still relatively straightforward.
File name format for performance monitoring files: cachegrind.out.xxxxxxxx.
This file can also be viewed directly, but the information format is not easily understood by humans,
So we need the next software.
Second, installation Wincachegrind
Because the performance monitoring file: The contents of the Cachegrind.out.xxxxxxxx file are not easily understood by humans, we need a tool to read it. There is a software like this in Windows: Wincachegrind.
1, to http://sourceforge.net/projects/wincachegrind/download installation Wincachegrind
2, after the installation run, click Tools->options, set your working folder (php.ini Xdebug.profiler_output_dir value)
This allows for a more intuitive view of the performance monitoring file information.

The above describes the manual configuration and usage instructions for Windows Installer Clean up Windows Xdebug, including the Windows Installer Clean up content, and you want to be helpful to friends who are interested in PHP tutorials.

  • 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.