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"