Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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