Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
phpで任意の箇所でスタックトレース表示するコード
foreach (debug_backtrace() as $func)
{
\Log::warning($func['file'] . ' - ' . $func['class'] . $func['type']
. $func['function'] . '(' . $func['args'] . ')[L' . $func['line'] . ']');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.