Skip to content

webSocketDebuggerUrl returned by v8_inspector in /json is invalid #7227

Description

@auchenberg

The webSocketDebuggerUrl returned by v8_inspector in /json HTTP endpoint is invalid, and causes 3rd party clients like VS Code and Sublime to fail connecting to the new CDP endpoint.

In addition then devtoolsFrontendUrl is served without the ?ws= querystring, which is returned by Chrome and Edge.

  • Version: v7.0.0-pre
  • Platform: OSX
  • Subsystem: v8_inspector

Actual response from http://localhost:5858/json:

[{
    "description": "node.js instance",
    "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_file/@4604d24a75168768584760ba56d175507941852f/inspector.html",
    "faviconUrl": "https://nodejs.org/static/favicon.ico",
    "id": "27382",
    "title": "./node",
    "type": "node",
    "webSocketDebuggerUrl": "ws:///node"
}]

Expected response:

[{
    "description": "node.js instance",
    "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_file/@4604d24a75168768584760ba56d175507941852f/inspector.html?experiments=true&v8only=true&ws=localhost:5858/node",
    "faviconUrl": "https://nodejs.org/static/favicon.ico",
    "id": "27382",
    "title": "./node",
    "type": "node",
    "webSocketDebuggerUrl": "ws://localhost:5858/node"
}]

(CC @ofrobots, @pavelfeldman)

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocol.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions