setInstrumentationBreakpoint method
Future<BreakpointId>
setInstrumentationBreakpoint(
- @Enum(['beforeScriptExecution', 'beforeScriptWithSourceMapExecution']) String instrumentation
Sets instrumentation breakpoint.
instrumentation
Instrumentation name.
Returns: Id of the created breakpoint for further reference.
Implementation
Future<BreakpointId> setInstrumentationBreakpoint(
@Enum(['beforeScriptExecution', 'beforeScriptWithSourceMapExecution'])
String instrumentation) async {
assert(const ['beforeScriptExecution', 'beforeScriptWithSourceMapExecution']
.contains(instrumentation));
var result = await _client.send('Debugger.setInstrumentationBreakpoint', {
'instrumentation': instrumentation,
});
return BreakpointId.fromJson(result['breakpointId'] as String);
}