How can I see what functions are currently setIntervaled or setTimeouted in javascript?
How can I see what functions are currently setInterval ed or setTimeout ed in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Thats not possible. You have to keep the id’s which are returned by setInterval oder setTimeout. When keeping the id’s you can also keep the functions name in which the interval or timeout is set. 🙂
So you can build a list of all timeouts and intervals.
Then you can loop through this array and produce a list.
a little example: