DOMDebugger Domain
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.
Methods
Types
Methods
DOMDebugger.removeDOMBreakpoint #
Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>.
parameters
- nodeId
-
DOM.NodeId
Identifier of the node to remove breakpoint from.
- type
-
DOMBreakpointType
Type of the breakpoint to remove.
DOMDebugger.removeEventListenerBreakpoint #
Removes breakpoint on particular DOM event.
parameters
- eventName
-
string
Event name.
- targetName
-
string
EventTarget interface name.
DOMDebugger.removeXHRBreakpoint #
Removes breakpoint from XMLHttpRequest.
parameters
- url
-
string
Resource URL substring.
DOMDebugger.setDOMBreakpoint #
Sets breakpoint on particular operation with DOM.
parameters
- nodeId
-
DOM.NodeId
Identifier of the node to set breakpoint on.
- type
-
DOMBreakpointType
Type of the operation to stop upon.
DOMDebugger.setEventListenerBreakpoint #
Sets breakpoint on particular DOM event.
parameters
- eventName
-
string
DOM Event name to stop on (any DOM event will do).
- targetName
-
string
EventTarget interface name to stop on. If equal to <code>"*"</code> or not provided, will stop on any EventTarget.
DOMDebugger.setXHRBreakpoint #
Sets breakpoint on XMLHttpRequest.
parameters
- url
-
string
Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
Types
DOMDebugger.DOMBreakpointType #
DOM breakpoint type.
subtree-modified
, attribute-modified
, node-removed
Type: string