enable method

Future<UniqueDebuggerId> enable({
  1. num? maxScriptsCacheSize,
})

Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. maxScriptsCacheSize The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted. Returns: Unique identifier of the debugger.

Implementation

Future<runtime.UniqueDebuggerId> enable({num? maxScriptsCacheSize}) async {
  var result = await _client.send('Debugger.enable', {
    if (maxScriptsCacheSize != null)
      'maxScriptsCacheSize': maxScriptsCacheSize,
  });
  return runtime.UniqueDebuggerId.fromJson(result['debuggerId'] as String);
}