Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you inspect a javascript timeout using Firebug?

I suspect I have an issue with a timeout function in javascript that triggers a refresh. Is there a way in Firebug to view what timeouts have been registered?

Edit: I guess I wasn't clear, is there a way to view the list of timeout callbacks or their status? (Timeleft, fired or not, registered function, etc....)

like image 281
chotchki Avatar asked Sep 12 '11 17:09

chotchki


1 Answers

If you name all the timeouts you can view them in firebug.

var t1 = setTimeout(...,...);

Then in the console you can just type in t1 and press enter

Or type console.log(t1) into the console and press enter

like image 131
Naftali Avatar answered Oct 31 '22 20:10

Naftali