Skip to content

Show sample response objects #7

@jasonLaster

Description

@jasonLaster

It'd be really nice if the protocol viewer showed some sample messages

{
  "callFrameId": "{\"ordinal\":0,\"injectedScriptId\":2}",
  "functionName": "module.exports.Router.extend.index",
  "location": {
    "scriptId": "34",
    "lineNumber": 26642,
    "columnNumber": 23
  },
  "scopeChain": [
    {
      "object": {
        "type": "object",
        "objectId": "{\"injectedScriptId\":2,\"id\":1}",
        "className": "Object",
        "description": "Object"
      },
      "type": "local"
    },
    {
      "object": {
        "type": "object",
        "objectId": "{\"injectedScriptId\":2,\"id\":2}",
        "className": "Object",
        "description": "Object"
      },
      "type": "closure"
    },
    {
      "object": {
        "type": "object",
        "objectId": "{\"injectedScriptId\":2,\"id\":3}",
        "className": "Window",
        "description": "Window"
      },
      "type": "global"
    }
  ],
  "this": {
    "type": "object",
    "objectId": "{\"injectedScriptId\":2,\"id\":4}",
    "className": "child",
    "description": "child"
  }
}

Activity

paulirish

paulirish commented on Jun 29, 2015

@paulirish
Member

agree, though i dont know an easy way to get these that match the version of the protocol we show.

changed the title [-]Show sample message[/-] [+]Show sample response objects[/+] on Jul 15, 2015
OrKoN

OrKoN commented on Aug 9, 2025

@OrKoN
Collaborator

I think it's unlikely that we will ever have examples for each command/event on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @paulirish@jasonLaster@OrKoN@kdzwinel

        Issue actions

          Show sample response objects · Issue #7 · ChromeDevTools/debugger-protocol-viewer