Skip to content

Instantly share code, notes, and snippets.

@DTrejo
Created April 7, 2013 22:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DTrejo/5332930 to your computer and use it in GitHub Desktop.
Save DTrejo/5332930 to your computer and use it in GitHub Desktop.
find rogue console.log that snuck into your code, or other people's code
var cl = console.log
console.log = function() {
cl(arguments.callee.caller.toString())
cl.apply(console, arguments)
};
// then grep through your code for that function.
@xrl
Copy link

xrl commented Jul 10, 2013

Good idea but this blows up in my build of chrome: "Uncaught TypeError: Illegal invocation"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment