← Back to DOMDebugger domain

DOMDebugger.setDOMBreakpoint

Sets breakpoint on particular operation with DOM.

Domain: DOMDebugger stable

Parameters

NameTypeDescription
nodeIdDOM.NodeIdIdentifier of the node to set breakpoint on.
typeDOMBreakpointTypeType of the operation to stop upon.

Example Request

{
  "id": 1,
  "method": "DOMDebugger.setDOMBreakpoint",
  "params": {
    "nodeId": 1,
    "type": "type-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('DOMDebugger.setDOMBreakpoint', {"nodeId": 1, "type": "type-value"});
console.log(result);