Closed
Description
- Version: 7.6.0 and later
- Platform: all
- Subsystem: diagnostics
This is a feature request to add a method to the v8
module that exposes the V8 inspector URL if the process has been started with --inspect
. The motivation for this feature is to conveniently add links or buttons to a website that the developer can click to open the V8 inspector.
This is a hypothetical API:
$ node --inspect=dev.example.com:1337
> require('v8').getInspectorUri()
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=dev.example.com:1337/8fe96e86-fa03-4a24-b21d-2ce3725e479e
$ node
> require('v8').getInspectorUri()
null