setBlackboxPatterns method

Future<void> setBlackboxPatterns(
  1. List<String> patterns, {
  2. bool? skipAnonymous,
})

Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. patterns Array of regexps that will be used to check script url for blackbox state. skipAnonymous If true, also ignore scripts with no source url.

Implementation

Future<void> setBlackboxPatterns(
  List<String> patterns, {
  bool? skipAnonymous,
}) async {
  await _client.send('Debugger.setBlackboxPatterns', {
    'patterns': [...patterns],
    if (skipAnonymous != null) 'skipAnonymous': skipAnonymous,
  });
}