setBreakpoint method

Future<SetBreakpointResult> setBreakpoint(
  1. Location location, {
  2. String? condition,
})

Sets JavaScript breakpoint at a given location. location Location to set breakpoint in. condition Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.

Implementation

Future<SetBreakpointResult> setBreakpoint(Location location,
    {String? condition}) async {
  var result = await _client.send('Debugger.setBreakpoint', {
    'location': location,
    if (condition != null) 'condition': condition,
  });
  return SetBreakpointResult.fromJson(result);
}