How to debug web workers

前端 未结 12 1151
被撕碎了的回忆
被撕碎了的回忆 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:04

    Beside JSON.stringify(), there's also port.postMessage( (new Object({o: object})) ). Maybe using it in tandem with JSON.stringify will be more helpful.

    Hope this was helpful!

提交回复
热议问题