admin管理员组文章数量:1287790
This might seem like a very silly question, but how can i get the UI for the worker thread, containing the javascript like in chrome, you get a URL for the worker thread when debugging, for firefox ? I can't see this on firebug or the default debugging tool on firefix. I feel like i'm missing something obvious. Can someone please help me out here ?
This might seem like a very silly question, but how can i get the UI for the worker thread, containing the javascript like in chrome, you get a URL for the worker thread when debugging, for firefox ? I can't see this on firebug or the default debugging tool on firefix. I feel like i'm missing something obvious. Can someone please help me out here ?
Share Improve this question asked Oct 29, 2013 at 13:53 Nagesh ShastryNagesh Shastry 911 silver badge7 bronze badges2 Answers
Reset to default 6There is now an option to enable debugging of workers in FireFox 43:
In Firefox 100 and probably later you should be able to debug live workers via debugging page:
about:debugging#/runtime/this-firefox
Just click on the "Inspect" button (beside the worker you want to debug). The button should open devtools for that worker.
Note that you might need to refresh the page you are trying to debug. Stopped workers will not be available there. As you can see on the screen below I can only debug (inspect) 2 of 3 workers.
A request to add inspect button in DevTools is here: https://bugzilla.mozilla/show_bug.cgi?id=1695114
BTW. If you do something like console.log('[sw.fetch]', 'cached and ok', response);
you will not see this in main devtools. At least not in FF 101.0.
本文标签: javascriptWeb worker debugging in firefoxStack Overflow
版权声明:本文标题:javascript - Web worker debugging in firefox - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741322819a2372304.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论