Description
Stem from #25291 (comment)
What I liked about process.config.variables.v8_enable_inspector is that it's also a user accessible way to detect if the inspector is enabled. Instead of moving to an internal solution it would be rad to expose this in a more user-friendly way.
Right now, there is an undocumented process.features
for that purpose, but it has not been well-maintained. It's possible to detect certain features known at build time via process.config.variables
but that object is mutable in the user land so it's not exactly reliable (whereas process.features
have been immutable). Also it's not really a good design to have users rely on internal variable names.
Should we deprecate it in favor of a better feature detection API, or start maintain it properly?
Related: #22585 but that is more about availability of specific APIs like recursive fs.mkdir
, whereas process.features
have been more about higher-level feature sets.