Worker
the creation code is as follows:
var script = "";
script += "var a = 0;";
script += "aPP;";
script += "console.log(a)";
var blob = new Blob([script] , {
type: "text/javascript"
});
var src = URL.createObjectURL(blob);
var w = new Worker(src);
Open the console and make a breakpoint:
breakpoint is not triggered!
if you use the local file path directly:
var w = new Worker("js/w.js");
break points are useful in w.js
!
how do I debug blob
generated js
script links for Worker
thread debugging?