Skip to content

Instantly share code, notes, and snippets.

@alfchee
Created October 26, 2018 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfchee/00adbab075a7feb3be1b77c68df488fc to your computer and use it in GitHub Desktop.
Save alfchee/00adbab075a7feb3be1b77c68df488fc to your computer and use it in GitHub Desktop.
Trace the stack of calls for your break var_dump()
// useful line of code to generate a backtrace
array_walk(debug_backtrace(),create_function('$a,$b','print "{$a[\'function\']}()(".basename($a[\'file\']).":{$a[\'line\']}); ";')); die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment