[Suggestion] Add option to allow setting process name based on --inspect-brk=0 random port #28998
Labels
feature request
Issues that request new features to be added to Node.js.
inspector
Issues and PRs related to the V8 inspector protocol
stale
Currently when using
--inspect-brk=0
tools like VSCode are unable to effectively auto attach debuggers to them.It is also particularly hard to have a cross platform way of detecting node processes that can be attached to when
NODE_OPTIONS=
is used.I'd like to propose adding another option such as
--inspect-set-process-title=pattern
which sets the process title to the given pattern where some things like the websocket name and port can be replaced in the pattern.e.g.:
This could also work with the existing
--title
option when using--inspect-brk
, I don't have a strong preference for a specific solution.The text was updated successfully, but these errors were encountered: