evaluateOnCallFrame method

Future<EvaluateOnCallFrameResult> evaluateOnCallFrame(
  1. CallFrameId callFrameId,
  2. String expression, {
  3. String? objectGroup,
  4. bool? includeCommandLineAPI,
  5. bool? silent,
  6. bool? returnByValue,
  7. bool? generatePreview,
  8. bool? throwOnSideEffect,
  9. TimeDelta? timeout,
})

Evaluates expression on a given call frame. callFrameId Call frame identifier to evaluate on. expression Expression to evaluate. objectGroup String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). includeCommandLineAPI Specifies whether command line API should be available to the evaluated expression, defaults to false. silent In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. returnByValue Whether the result is expected to be a JSON object that should be sent by value. generatePreview Whether preview should be generated for the result. throwOnSideEffect Whether to throw an exception if side effect cannot be ruled out during evaluation. timeout Terminate execution after timing out (number of milliseconds).

Implementation

Future<EvaluateOnCallFrameResult> evaluateOnCallFrame(
  CallFrameId callFrameId,
  String expression, {
  String? objectGroup,
  bool? includeCommandLineAPI,
  bool? silent,
  bool? returnByValue,
  bool? generatePreview,
  bool? throwOnSideEffect,
  runtime.TimeDelta? timeout,
}) async {
  var result = await _client.send('Debugger.evaluateOnCallFrame', {
    'callFrameId': callFrameId,
    'expression': expression,
    if (objectGroup != null) 'objectGroup': objectGroup,
    if (includeCommandLineAPI != null)
      'includeCommandLineAPI': includeCommandLineAPI,
    if (silent != null) 'silent': silent,
    if (returnByValue != null) 'returnByValue': returnByValue,
    if (generatePreview != null) 'generatePreview': generatePreview,
    if (throwOnSideEffect != null) 'throwOnSideEffect': throwOnSideEffect,
    if (timeout != null) 'timeout': timeout,
  });
  return EvaluateOnCallFrameResult.fromJson(result);
}