← Back to DOMDebugger domain

DOMDebugger.setXHRBreakpoint

Sets breakpoint on XMLHttpRequest.

Domain: DOMDebugger stable

Parameters

NameTypeDescription
urlstringResource URL substring. All XHRs having this substring in the URL will get stopped upon.

Example Request

{
  "id": 1,
  "method": "DOMDebugger.setXHRBreakpoint",
  "params": {
    "url": "https://example.com"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('DOMDebugger.setXHRBreakpoint', {"url": "https://example.com"});
console.log(result);