Debug a Webworker
What's the best way to debug a webworker? My worker appears to be failing somewhere, but I don't appear to be able to log things to the console to figure out what's going on. Is there a way using fireb开发者_JAVA百科ug, or webkit's inspector I can run javascript in the webworker context? Is there a better way of doing this?
Debugging workers is now available in chrome.
look out the [article of chromium blog]
http://blog.chromium.org/2012/04/debugging-web-workers-with-chrome.html
At the moment no browser supports debugging of web workers. I've tested
- Chrome 7.0.517.24 dev
- Firefox 3.6.10
- WebKit nightly r68636
There is a nice article by Nicholas Zakas about debugging web workers.
精彩评论