DDR0 / WorkerConsole

console.log() for HTML5 Web Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OBSOLETE: This behaviour is now standard in all modern browsers.

Include the WorkerConsole.js script at the top of your HTML files and your Web Worker threads should be able to use console.log() to generate debugging output. This is just at the proof-of-concept stage, however, and has not been carefully tested. See the comment at the top of WorkerConsole.js. Only works in browsers that support MessageChannel (this excludes Firefox 4).

See testpage.html and tests/testworker.js for the simplest possible use of WorkerConsole.js

About

console.log() for HTML5 Web Workers


Languages

Language:JavaScript 97.1%Language:HTML 2.9%