是以下代码PHP:
<?php
function a() {
b();
}
function b() {
c();
}
function c(){
debug_print_backtrace();
}
function d() {
echo "I am a function d(). Where on the list is my call?\n";
}
d();
a();
?>
上面的示例将输出类似于:
I am a function d(). Where on the list is my call?
#0 c() called at [D:\tests.php:18]
#1 b() called at [D:\tests.php:14]
#2 a() called at [D:\tests.php:31]
有没有办法获得完整的调用跟踪,而不仅仅是调用堆栈跟踪?