How to debug web workers

前端 未结 12 1153
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 09:02

I have been working with web workers in HTML 5 and am looking for ways to debug them. Ideally something like the firebug or chrome debuggers. Does anyone have any good solu

12条回答
  •  感动是毒
    2020-12-05 10:03

    In February 2016, WebStorm released support for debugging web workers.

    WebStorm JavaScript debugger can now hit breakpoints inside these background workers. You can go through the frames and explore variables the same way as you’re used to. In the drop-down list on the left you can jump between the workers’ threads and the main application thread.

提交回复
热议问题