Debugger.setBreakpoint

Sets JavaScript breakpoint at a given location.

{
  "name": "setBreakpoint",
  "parameters": [
    {
      "name": "location",
      "$ref": "Location",
      "description": "Location to set breakpoint in."
    },
    {
      "name": "condition",
      "type": "string",
      "optional": true,
      "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
    }
  ],
  "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."
}