Skip to content

Instantly share code, notes, and snippets.

@joachim-n
Created September 15, 2013 12:35
Show Gist options
  • Select an option

  • Save joachim-n/6570433 to your computer and use it in GitHub Desktop.

Select an option

Save joachim-n/6570433 to your computer and use it in GitHub Desktop.
For places where you can't output to browser, and debug() will choke on a full backtrace.
$trace = debug_backtrace();
foreach ($trace as $trace_item) {
$debug[] = $trace_item['function'];
}
debug($debug);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment