Skip to content

Commit 826911d

Browse files
authored
Add trace()
1 parent afc7f1a commit 826911d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

system/Common.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,3 +1084,18 @@ function dd(...$vars)
10841084
exit;
10851085
}
10861086
}
1087+
1088+
1089+
//--------------------------------------------------------------------
1090+
1091+
if (! function_exists('trace'))
1092+
{
1093+
/**
1094+
* Provides a backtrace to the current execution point, from Kint.
1095+
*/
1096+
function trace()
1097+
{
1098+
Kint::$aliases[] = 'trace';
1099+
Kint::trace();
1100+
}
1101+
}

0 commit comments

Comments
 (0)