可能重复:
PHP - I want to know how to get function tracePHP - 我如何看到一个类执行的所有操作?
我需要看到一个PHP脚本做什么,当我把它。
我打电话就像一个剧本:
php -f thescript.php --option1 --option2
的代码是这样的:
class thescript {
static function func01($some_parameter) {
//some code here
}
static function func02($some_parameter) {
//some code here
}
static function func03($some_parameter) {
//some code here
}
}
function helperFunction01($some_parameter)
{
//some code here
}
我如何跟踪所有的功能和方法调用的旅行?
最好的问候,
有没有明显的简单的方法来做到这一点 - 'debug_backtrace'给你你需要什么,但你需要把它放在你的代码中。你需要做什么? –