How to debug shared webworkers?
问题 I am using shared webworkers, I am not getting the errors from the worker. The worker error handler not returning any errors!. How can I Debug shared webworkers. var worker = new SharedWorker('Vult_worker.js'); worker.port.start(); worker.port.onerror = function(e) { consloe.log('ERROR: Line ', e.lineno, ' in ', e.filename, ': ', e.message); } worker.port.onmessage = function(e) { console.log(e.data); }; worker.port.postmessage(); worker Code: onconnect = function(e) { var self = e.ports[0];