Search code examples
javascripthtmlgoogle-chromefirebug

How to debug web workers


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 solution to this. with no access to the console or DOM its kind of hard to debug iffy code


Solution

  • As a fast solution on the missing console.log, you can just use throw JSON.stringify({data:data})