Skip to content

Instantly share code, notes, and snippets.

@mkropat
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save mkropat/6dadb15a21471ccd3f90 to your computer and use it in GitHub Desktop.

Select an option

Save mkropat/6dadb15a21471ccd3f90 to your computer and use it in GitHub Desktop.
<?php
header('Debug-Trace-'.substr(microtime(),0,8).': ' . json_encode(debug_backtrace()));
// Then in your browser just run
//
// console.log(JSON.stringify(<PASTE TRACE HERE>, null, 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment