setBreakpointOnFunctionCall method

Future<BreakpointId> setBreakpointOnFunctionCall(
  1. RemoteObjectId objectId, {
  2. String? condition,
})

Sets JavaScript breakpoint before each call to the given function. If another function was created from the same source as a given one, calling it will also trigger the breakpoint. objectId Function object id. condition Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true. Returns: Id of the created breakpoint for further reference.

Implementation

Future<BreakpointId> setBreakpointOnFunctionCall(
    runtime.RemoteObjectId objectId,
    {String? condition}) async {
  var result = await _client.send('Debugger.setBreakpointOnFunctionCall', {
    'objectId': objectId,
    if (condition != null) 'condition': condition,
  });
  return BreakpointId.fromJson(result['breakpointId'] as String);
}