Debugger.evaluateOnCallFrame

Evaluates expression on a given call frame.

{
  "name": "evaluateOnCallFrame",
  "parameters": [
    {
      "name": "callFrameId",
      "$ref": "CallFrameId",
      "description": "Call frame identifier to evaluate on."
    },
    {
      "name": "expression",
      "type": "string",
      "description": "Expression to evaluate."
    },
    {
      "name": "objectGroup",
      "type": "string",
      "optional": true,
      "description": "String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup)."
    },
    {
      "name": "includeCommandLineAPI",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false."
    },
    {
      "name": "doNotPauseOnExceptionsAndMuteConsole",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state."
    },
    {
      "name": "returnByValue",
      "type": "boolean",
      "optional": true,
      "description": "Whether the result is expected to be a JSON object that should be sent by value."
    },
    {
      "name": "generatePreview",
      "type": "boolean",
      "optional": true,
      "description": "Whether preview should be generated for the result."
    },
    {
      "name": "saveResult",
      "type": "boolean",
      "optional": true,
      "description": "Whether the resulting value should be considered for saving in the $n history."
    }
  ],
  "returns": [
    {
      "name": "result",
      "$ref": "Runtime.RemoteObject",
      "description": "Object wrapper for the evaluation result."
    },
    {
      "name": "wasThrown",
      "type": "boolean",
      "optional": true,
      "description": "True if the result was thrown during the evaluation."
    },
    {
      "name": "savedResultIndex",
      "type": "integer",
      "optional": true,
      "description": "If the result was saved, this is the $n index that can be used to access the value."
    }
  ],
  "description": "Evaluates expression on a given call frame."
}