Skip to content

Instantly share code, notes, and snippets.

@brunoocasali
Forked from zapthedingbat/logeverything.js
Created November 21, 2018 13:18
Show Gist options
  • Save brunoocasali/19a9010a4de92c112c22b3c1cb703d9d to your computer and use it in GitHub Desktop.
Save brunoocasali/19a9010a4de92c112c22b3c1cb703d9d to your computer and use it in GitHub Desktop.
Log every function call to the console
(function() {
var call = Function.prototype.call;
Function.prototype.call = function() {
console.log(this, arguments);
return call.apply(this, arguments);
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment