2011-11-23 51 views
0

可能重複:
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 
} 

我如何跟蹤所有的功能和方法調用的旅行?

最好的問候,

+1

有沒有明顯的簡單的方法來做到這一點 - 'debug_backtrace'給你你需要什麼,但你需要把它放在你的代碼中。你需要做什麼? –

回答

相關問題