Home > Backend Development > PHP Tutorial > How to add Xdebug extension to PHP_PHP tutorial

How to add Xdebug extension to PHP_PHP tutorial

WBOY
Release: 2016-07-13 10:39:01
Original
902 people have browsed it

1. Download the corresponding DLL

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

3. Modify php.ini

Copy the code The code is as follows:

[Xdebug]
zend_extension="./ext/php_xdebug-2.2.3-5.3-vc9-nts.dll"
;The following are the 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" The configuration is to place the debug file in the PHP installation directory for xdebug folder, so create a new xdebug folder in the PHP installation directory

xdebug.profiler_output_dir="./xdebug" The configuration is to place the debug file in the xdebug folder under the running project, so it must be in Create a new xdebug folder in the project directory

Test

Create a new php file
Copy the code The code is as follows:

testXdebug();
function testXdebug() {
require_once('abc.php');
}
?>

Run to see if the file is generated in the xdebug folder in the php installation directory. If the file is generated, the installation is successful.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/733410.htmlTechArticle 1. Download the corresponding DLL 2. Place the file in the ext folder under the PHP installation directory 3. Modify php.ini Copy the code as follows: [Xdebug] zend_extension="./ext/php_xdebug-2.2.3-5.3...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template