Let's say that I use setTimeout functions several times in my application. Is there an option that I can see all timeouts waiting in my browser? I was thinking about a property of window object or something in developer tools.
Asked
Active
Viewed 59 times
0
-
TLDR of that question; No, but you can override the default `setTimout` with your own version that *does* keep track of any scheduled timeouts. – Sidney Mar 09 '18 at 23:33
-
save each setTimeout id into an array, and remove that id from the array once the timeout has fired. – George Mar 09 '18 at 23:40
-
Gerr just about to write a better answer!!!! – Lawrence Cherone Mar 10 '18 at 00:06
-
Posted here instead: https://stackoverflow.com/questions/5817526/javascript-is-it-possible-to-view-all-currently-scheduled-timeouts/49204048#49204048 – Lawrence Cherone Mar 10 '18 at 00:20