{ "domain": "DOMDebugger", "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.", "availability": ["web"], "types": [ { "id": "DOMBreakpointType", "type": "string", "enum": ["subtree-modified", "attribute-modified", "node-removed"], "description": "DOM breakpoint type." } ], "commands": [ { "name": "setDOMBreakpoint", "description": "Sets breakpoint on particular operation with DOM.", "parameters": [ { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." }, { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." } ] }, { "name": "removeDOMBreakpoint", "description": "Removes DOM breakpoint that was set using setDOMBreakpoint.", "parameters": [ { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." }, { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." } ] }, { "name": "setEventListenerBreakpoint", "description": "Sets breakpoint on particular DOM event.", "parameters": [ { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." } ] }, { "name": "removeEventListenerBreakpoint", "description": "Removes breakpoint on particular DOM event.", "parameters": [ { "name": "eventName", "type": "string", "description": "Event name." } ] }, { "name": "setInstrumentationBreakpoint", "description": "Sets breakpoint on particular native event.", "parameters": [ { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } ] }, { "name": "removeInstrumentationBreakpoint", "description": "Sets breakpoint on particular native event.", "parameters": [ { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } ] }, { "name": "setXHRBreakpoint", "description": "Sets breakpoint on XMLHttpRequest.", "parameters": [ { "name": "url", "type": "string", "description": "Resource URL substring or regular expression. All XHRs having this substring in the URL will get stopped upon. An empty string will pause on all XHRs." }, { "name": "isRegex", "type": "boolean", "optional": true, "description": "Whether the URL string is a regular expression." } ] }, { "name": "removeXHRBreakpoint", "description": "Removes breakpoint from XMLHttpRequest.", "parameters": [ { "name": "url", "type": "string", "description": "Resource URL substring. An empty string will stop pausing on all XHRs." } ] } ] }