可能重复:
PHP - I want to know how to get function trace
当我调用它时,我需要看到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
}如何跟踪调用所传递的所有功能和方法?
诚挚的问候,
发布于 2011-11-23 09:15:19
您可以执行一个debug_backtrace()来查看您在某个地方结束的调用。
发布于 2011-11-23 09:18:15
我认为您可以使用xdebug来执行这个http://xdebug.org/docs/execution_trace。
https://stackoverflow.com/questions/8239606
复制相似问题