[Webkit-unassigned] [Bug 30257] Web Inspector: Need a way to track pending timers through the inspector
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 10 13:42:02 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=30257
--- Comment #5 from Rob Colburn <robert.colburn+bugzilla at gmail.com> 2012-05-10 13:41:06 PST ---
Created an attachment (id=141242)
--> (https://bugs.webkit.org/attachment.cgi?id=141242&action=review)
Current Script Panel - Controls Pane
Attachment shows that we can now break at all setTimeout/setInterval/clearTimeout/clearInterval. Which helps the original problem.
Personally, I think that is still too noisy though. I am not certain of the data structure we use for timers, I think of it as array of Timer objects and Interval objects with a few properties.
If it would be expensive to display these in the Scripts panel, it would be nice to be able to query that data:
console.getTimeouts()
[ *Timeout, *Timeout, *Timeout, *Timeout ]
console.getTimeouts()[1]
*Timeout
ID: 1
inited: '05-12-2012 13:00:00'
delay: 200
code: ''
func: function(){}
scope: *Object
params: []
Actually, it would nice if that data was exposed to the browser JS too, but there might be security implications.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list