Debugger.setBreakpoint

Sets JavaScript breakpoint at a given location.

{
  "name": "setBreakpoint",
  "parameters": [
    {
      "name": "location",
      "$ref": "Location",
      "description": "Location to set breakpoint in."
    },
    {
      "name": "options",
      "$ref": "BreakpointOptions",
      "optional": true,
      "description": "Options to apply to this breakpoint to modify its behavior."
    }
  ],
  "returns": [
    {
      "name": "breakpointId",
      "$ref": "BreakpointId",
      "description": "Id of the created breakpoint for further reference."
    },
    {
      "name": "actualLocation",
      "$ref": "Location",
      "description": "Location this breakpoint resolved into."
    }
  ],
  "description": "Sets JavaScript breakpoint at a given location."
}