tot: DOMDebugger
Contents
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.
Commands
DOMDebugger.removeDOMBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.removeDOMBreakpoint",
"params": {
"nodeId": <DOM.NodeId>,
"type": <DOMBreakpointType>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.removeDOMBreakpoint",
"params": {
"nodeId": <DOM.NodeId>,
"type": <DOMBreakpointType>
}
}
response: {"id": <number>,
"error": <object>
}
Removes DOM breakpoint that was set using setDOMBreakpoint
.
Parameters
nodeId
(
DOM.NodeId
)
Identifier of the node to remove breakpoint from.
type
Type of the breakpoint to remove.
DOMDebugger.removeEventListenerBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.removeEventListenerBreakpoint",
"params": {
"eventName": <string>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.removeEventListenerBreakpoint",
"params": {
"eventName": <string>
}
}
response: {"id": <number>,
"error": <object>
}
Removes breakpoint on particular DOM event.
Parameters
eventName
(
string
)
Event name.
DOMDebugger.removeXHRBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.removeXHRBreakpoint",
"params": {
"url": <string>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.removeXHRBreakpoint",
"params": {
"url": <string>
}
}
response: {"id": <number>,
"error": <object>
}
Removes breakpoint from XMLHttpRequest.
Parameters
url
(
string
)
Resource URL substring.
DOMDebugger.setDOMBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.setDOMBreakpoint",
"params": {
"nodeId": <DOM.NodeId>,
"type": <DOMBreakpointType>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.setDOMBreakpoint",
"params": {
"nodeId": <DOM.NodeId>,
"type": <DOMBreakpointType>
}
}
response: {"id": <number>,
"error": <object>
}
Sets breakpoint on particular operation with DOM.
Parameters
nodeId
(
DOM.NodeId
)
Identifier of the node to set breakpoint on.
type
Type of the operation to stop upon.
DOMDebugger.setEventListenerBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.setEventListenerBreakpoint",
"params": {
"eventName": <string>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.setEventListenerBreakpoint",
"params": {
"eventName": <string>
}
}
response: {"id": <number>,
"error": <object>
}
Sets breakpoint on particular DOM event.
Parameters
eventName
(
string
)
DOM Event name to stop on (any DOM event will do).
DOMDebugger.setXHRBreakpoint
request: {
"id": <number>,
"method": "DOMDebugger.setXHRBreakpoint",
"params": {
"url": <string>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "DOMDebugger.setXHRBreakpoint",
"params": {
"url": <string>
}
}
response: {"id": <number>,
"error": <object>
}
Sets breakpoint on XMLHttpRequest.
Parameters
url
(
string
)
Resource URL substring. All XHRs having this substring in the URL will get stopped upon.