[Request] Display worker name in dev tools
Reported by
ashlaa...@gmail.com,
Oct 3
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce the problem: The worker 'name' attribute is now supported ( issue 721219 ). This is useful information to display in dev tools, but it's not currently shown. Some apps spin up lots of workers, e.g. up to hardwareConcurrency to do lots of background work. Currently there is nothing to distinguish multiple workers in devtools - they all look identical. However if it displays the name then at least there is a way to label or number them so you can find which worker is logging a particular message, etc. What is the expected behavior? Display worker names in dev tools 'sources' tab. What went wrong? Worker names are not used. Did this work before? N/A Chrome version: 69.0.3497.100 Channel: stable OS Version: 10.0 Flash Version:
,
Oct 3
,
Oct 3
,
Oct 27
+1, would be nice for UE as well.
I'm currently working around this with new Worker("pthread-main.js#threadname"),
which is very silly, but it seems to work at least in Chrome and Firefox.
,
Oct 27
BTW, this applies to both the Sources list and the debugger's Threads list.
,
Dec 3
,
Dec 3
,
Dec 3
Joel is working on this. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by phanindra.mandapaka@chromium.org
, Oct 3