How can I talk to Firebug from a web worker?

My web workers are becoming more complex, and I really miss Firebug access while working with them. It:

console.log("test");

Does not produce anything from the webmaster. I also tried the following:

dump("test");

And this also does not give a result.

Firefox Version:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

Firebug version 1.4X.5

+2
source share
1 answer

You cannot print directly to the console. You must send messages from workflows to the main window, and then print to the console from there. See this article for more details: http://www.nczonline.net/blog/2009/08/25/web-workers-errors-and-debugging/ .

+4
source

Source: https://habr.com/ru/post/1722876/


All Articles