Debugger.setBlackboxPatternsReplace 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.
| Name | Type | Description |
|---|---|---|
patterns | array | Array of regexps that will be used to check script url for blackbox state. |
skipAnonymous (optional) | boolean | If true, also ignore scripts with no source url. |
{
"id": 1,
"method": "Debugger.setBlackboxPatterns",
"params": {
"patterns": []
}
}
{
"id": 1,
"result": {}
}
const result = await send('Debugger.setBlackboxPatterns', {"patterns": []});
console.log(result);