← Back to Debugger domain

Debugger.setBlackboxedRanges

Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.

Domain: Debugger experimental

Parameters

NameTypeDescription
scriptIdRuntime.ScriptIdId of the script.
positionsarray

Example Request

{
  "id": 1,
  "method": "Debugger.setBlackboxedRanges",
  "params": {
    "scriptId": "1",
    "positions": []
  }
}

Example Response

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

Usage in Node.js

const result = await send('Debugger.setBlackboxedRanges', {"scriptId": "1", "positions": []});
console.log(result);