Overall, I would recommend combining both approaches provided by the8472 and Patrick Evans to get a better debugging experience:
,
let worker = new Worker(url);
-
let worker = new Worker(`${url}?name=SomeContext`, { name: 'Some useful context' });
, Firefox 54 . URL- - . , API ( Firefox , ) , :
name: DOMString DedicatedWorkerGlobalScope, , .
, (, about:debugging#workers Firefox), URL- .
, , URL-, . , . , ( ).