dd 调试函数

This commit is contained in:
柳清爽
2025-04-10 18:09:49 +08:00
parent d41cb3f4cd
commit c51d090d28
2 changed files with 372 additions and 0 deletions

View File

@@ -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());
}