一、下载Xdebug安装包:http://www.xdebug.org/download.php
二、复制到PHP的扩展DLL的目录,例如:C:/php/ext/php_xdebug-2.0.4-5.2.8-nts.dll
三、添加此为php.ini指令:
zend_extension = "C:/php/ext/php_xdebug-2.0.4-5.2.8-nts.dll"
xdebug.collect_includes = Off
xdebug.default_enable = Off
xdebug.dump_globals = Off
xdebug.dump_once = Off
xdebug.extended_info = Off
Input
<?php
include './auto_prepend.php';
echo '<h1>test3: trace</h1>';
function test1()
{
test2();
}
function test2()
{
for ($i = 0; $i < 100; $i++) {
$s = substr('', 0, 1);
}
}
test1();
include './auto_append.php';
?>





评论列表