Skip to content

Instantly share code, notes, and snippets.

@geekbrit
Created March 11, 2016 14:59
Show Gist options
  • Save geekbrit/1dd09c8b1c239e04af2b to your computer and use it in GitHub Desktop.
Save geekbrit/1dd09c8b1c239e04af2b to your computer and use it in GitHub Desktop.
View all Javascript setTimeout creation and fire events in the console window
window.originalSetTimeout = window.setTimeout;
window.setTimeout=function(func,delay) {
console.log("\n\nNew timer, delay:%s\nfunc:%s",delay, func);
return window.originalSetTimeout(function(e){console.log("\nTimerFired:%s",func);func(e)},delay);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment