Home > Mobile >  How to name Node js workers
How to name Node js workers

Time:01-19

Simple question that I can't find a solution to - is there a way to give names to workers that I initialize in my Node.js app? My target is being able to know in which worker I'm looking while debugging a Node.js application in VS Code (by seeing the worker name instead of `Worker ${X}`.

enter image description here

CodePudding user response:

Alas, no:

https://github.com/nodejs/node/blob/56679eb53044b03e4da0f7420774d54f0c550eec/src/inspector/worker_inspector.cc#L28

But you could always try to convince them and submit a PR because the feature appears useful

  •  Tags:  
  • Related