2

My web workers are becoming increasingly complicated and I'm sorely missing Firebug access while working with them. This:

console.log("test"); 

Does not produce anything from a web worker. I've also tried the following:

dump("test"); 

And that doesn't produce any output either.

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

1
  • I'm asking how to talk to Firebug from a web worker. I've listed two ways I've tried to do so. I've mentioned I'm trying to debug a web worker. I've written my goal in the title. What's unclear? Commented Nov 14, 2009 at 20:27

1 Answer 1

4

You can't print to console directly. You have to send messages from worker threads to the main window and then print to console from there. See this article for details: http://www.nczonline.net/blog/2009/08/25/web-workers-errors-and-debugging/.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.