dd 调试函数
This commit is contained in:
@@ -509,3 +509,21 @@ if (!function_exists('exit_data')) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试打印变量并终止程序
|
||||
* @return void
|
||||
*/
|
||||
function dd()
|
||||
{
|
||||
call_user_func_array(['app\\common\\helper\\Debug', 'dd'], func_get_args());
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试打印变量但不终止程序
|
||||
* @return void
|
||||
*/
|
||||
function dump()
|
||||
{
|
||||
call_user_func_array(['app\\common\\helper\\Debug', 'dump'], func_get_args());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user