Debugger.getPossibleBreakpoints

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

{
  "name": "getPossibleBreakpoints",
  "parameters": [
    {
      "name": "start",
      "$ref": "Location",
      "description": "Start of range to search possible breakpoint locations in."
    },
    {
      "name": "end",
      "$ref": "Location",
      "optional": true,
      "description": "End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range."
    },
    {
      "name": "restrictToFunction",
      "type": "boolean",
      "optional": true,
      "description": "Only consider locations which are in the same (non-nested) function as start."
    }
  ],
  "returns": [
    {
      "name": "locations",
      "type": "array",
      "items": {
        "$ref": "BreakLocation"
      },
      "description": "List of the possible breakpoint locations."
    }
  ],
  "description": "Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.",
  "experimental": true
}