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.
http://www.bkjia.com/PHPjc/733410.htmlwww.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...