php 回溯函数打印 debug_print_backtrace

ob_start(); 
debug_print_backtrace(); 
$trace = ob_get_contents(); 
ob_end_clean();

file_put_contents("/tmp/debug", $trace."\n", 8);
posted @ 2017-10-15 19:09  hopher  阅读(381)  评论(0编辑  收藏  举报