← Back to Debugger domain

Debugger.setBlackboxPatterns

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.

Domain: Debugger experimental

Parameters

NameTypeDescription
patternsarrayArray of regexps that will be used to check script url for blackbox state.
skipAnonymous (optional)booleanIf true, also ignore scripts with no source url.

Example Request

{
  "id": 1,
  "method": "Debugger.setBlackboxPatterns",
  "params": {
    "patterns": []
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Debugger.setBlackboxPatterns', {"patterns": []});
console.log(result);