Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-如何查看类执行的所有操作?_Php_Debugging_Trace - Fatal编程技术网

PHP-如何查看类执行的所有操作?

PHP-如何查看类执行的所有操作?,php,debugging,trace,Php,Debugging,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

可能重复:

我需要看看当我调用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
}
如何跟踪调用传递的所有函数和方法


致以最诚挚的问候,

您可以执行一个命令,以查看您在某处结束了哪些调用。

我认为您可以使用xdebug来完成此操作

没有明显的简单方法-
debug\u backtrace
为您提供了所需的内容,但您需要将其放在代码中。你需要这个做什么?