Windows environment configuration Xdebug debugging php____php

Source: Internet
Author: User
Tags phpinfo stack trace vc9

1. Version Correspondence

PHP versions, TS and NTS,VC9 and vc11,32 bits and 64-bit need to be correct.

First view the PHP installation version with Phpinfo



2. Download the corresponding version

https://xdebug.org/download.php


For example, the 32-bit TS version is downloaded: php_xdebug-2.4.1-5.4-vc9.dll, this file can be copied into any directory.


3. Configure php.ini Files

[Xdebug]  
; Specifies the absolute path zend_extension=d:/phpext/php_xdebug-2.4.1-5.4-vc9.dll of the xdebug extension file 
; Enable performance detection profiling  
Xdebug.profiler_ Enable=on
enable code to automatically trace  
xdebug.auto_trace=on
; Allow collection of parameter variables Xdebug.collect_params=on passed to the function
; Allows the collection of return values for function calls  
Xdebug.collect_return=on
; Specifies the storage directory of the stack trace file  
xdebug.trace_output_dir= "D:/debug"
; Specify the storage directory for the profiling file  
xdebug.profiler_output_dir= "D:/debug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.remote_enable = on
xdebug.remote_port=9000
xdebug.remote_handler = DBGP
xdebug.remote_ host = localhost
xdebug.var_display_max_depth = 10

4. Restart PHP

Check to see if Phpinfo () is loaded well xdebug extended


Description: If this is not the correct configuration or incorrect version


5. Configure Netbean



6. Interrupt Point Start Debugging


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.