Heap.getPreview

Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.

{
  "name": "getPreview",
  "description": "Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.",
  "parameters": [
    {
      "name": "heapObjectId",
      "type": "integer",
      "description": "Identifier of the heap object within the snapshot."
    }
  ],
  "returns": [
    {
      "name": "string",
      "type": "string",
      "optional": true,
      "description": "String value."
    },
    {
      "name": "functionDetails",
      "$ref": "Debugger.FunctionDetails",
      "optional": true,
      "description": "Function details."
    },
    {
      "name": "preview",
      "$ref": "Runtime.ObjectPreview",
      "optional": true,
      "description": "Object preview."
    }
  ]
}