← Back to Debugger domain

Debugger.getPossibleBreakpoints

Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.

Domain: Debugger stable

Parameters

NameTypeDescription
startLocationStart of range to search possible breakpoint locations in.
end (optional)LocationEnd of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
restrictToFunction (optional)booleanOnly consider locations which are in the same (non-nested) function as start.

Returns

NameTypeDescription
locationsarrayList of the possible breakpoint locations.

Example Request

{
  "id": 1,
  "method": "Debugger.getPossibleBreakpoints",
  "params": {
    "start": "start-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "locations": []
  }
}

Usage in Node.js

const result = await send('Debugger.getPossibleBreakpoints', {"start": "start-value"});
console.log(result);
// {"locations": []}