Debugger.setBreakpointByUrl

Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.

{
  "name": "setBreakpointByUrl",
  "parameters": [
    {
      "name": "lineNumber",
      "type": "integer",
      "description": "Line number to set breakpoint at."
    },
    {
      "name": "url",
      "type": "string",
      "optional": true,
      "description": "URL of the resources to set breakpoint on."
    },
    {
      "name": "urlRegex",
      "type": "string",
      "optional": true,
      "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified."
    },
    {
      "name": "columnNumber",
      "type": "integer",
      "optional": true,
      "description": "Offset in the line to set breakpoint at."
    },
    {
      "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": "locations",
      "type": "array",
      "items": {
        "$ref": "Location"
      },
      "description": "List of the locations this breakpoint resolved into upon addition."
    }
  ],
  "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads."
}