Skip to content

Instantly share code, notes, and snippets.

@bigwheel
Last active December 22, 2015 10:29
Show Gist options
  • Save bigwheel/6459368 to your computer and use it in GitHub Desktop.
Save bigwheel/6459368 to your computer and use it in GitHub Desktop.
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