4 ms·
I'd like a real console object in worker (at least a variadic pretty-printing log() function and time()/timeEnd()) and a "break all threads" button too, please.
by nraynaud 13y ago
I'd like a real console object in worker (at least a variadic pretty-printing log() function and time()/timeEnd()) and a "break all threads" button too, please. Worker debugging is a pain.
- paulirish 13y agoI know it took a while, but take another look: Chrome now has full console support inside of workers: http://crbug.com/63383 http://crbug.com/63383 Right now, we're doing a bunch of work (hah) on our worker support. We'll address pausing execution in workers as well. Expect good improvements and file a ticket at crbug.com for any other ideas, please!
- nraynaud 13y agoI don't get it, 10h ago I still didn't have the fancy console.log() in workers (34.0.1847.116). Maybe there is a difference between the per worker debugger and the page global debugger, but my worker are transients (I do heavy computation without stopping the UI thread), so using the per worker debugger is not really practical.
- Flenser 13y agoif you're debugging in chrome but also running in browsers that don't support console.log in workers you can use this polyfill: https://github.com/paulmillr/console-polyfill/blob/master/index.js https://github.com/paulmillr/console-polyfill/blob/master/in...