You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.6 KiB

DOMDebugger

_Auto generated documentation for WebKit inspector

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.setDOMBreakpoint(DOM.NodeId, DOMBreakpointType, callback)

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.

callback ( function )

Results

error ( error )

DOMDebugger.removeDOMBreakpoint(DOM.NodeId, DOMBreakpointType, callback)

Removes DOM breakpoint that was set using setDOMBreakpoint.

Parameters

nodeId ( DOM.NodeId )

Identifier of the node to remove breakpoint from.

type ( DOMBreakpointType )

Type of the breakpoint to remove.

callback ( function )

Results

error ( error )

DOMDebugger.setEventListenerBreakpoint(eventName, callback)

Sets breakpoint on particular DOM event.

Parameters

eventName ( string )

DOM Event name to stop on (any DOM event will do).

callback ( function )

Results

error ( error )

DOMDebugger.removeEventListenerBreakpoint(eventName, callback)

Removes breakpoint on particular DOM event.

Parameters

eventName ( string )

Event name.

callback ( function )

Results

error ( error )

DOMDebugger.setInstrumentationBreakpoint(eventName, callback)

Sets breakpoint on particular native event.

Parameters

eventName ( string )

Instrumentation name to stop on.

callback ( function )

Results

error ( error )

DOMDebugger.removeInstrumentationBreakpoint(eventName, callback)

Sets breakpoint on particular native event.

Parameters

eventName ( string )

Instrumentation name to stop on.

callback ( function )

Results

error ( error )

DOMDebugger.setXHRBreakpoint(url, callback)

Sets breakpoint on XMLHttpRequest.

Parameters

url ( string )

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

callback ( function )

Results

error ( error )

DOMDebugger.removeXHRBreakpoint(url, callback)

Removes breakpoint from XMLHttpRequest.

Parameters

url ( string )

Resource URL substring.

callback ( function )

Results

error ( error )

Types

Class: DOMBreakpointType

Type: string

DOM breakpoint type.