DOMDebuggerApi class
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.
Constructors
- DOMDebuggerApi(Client _client)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getEventListeners(
RemoteObjectId objectId, {int? depth, bool? pierce}) → Future< List< EventListener> > -
Returns event listeners of the given object.
objectIdIdentifier of the object to return listeners for.depthThe maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.pierceWhether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled. Returns: Array of relevant listeners. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDOMBreakpoint(
NodeId nodeId, DOMBreakpointType type) → Future< void> -
Removes DOM breakpoint that was set using
setDOMBreakpoint.nodeIdIdentifier of the node to remove breakpoint from.typeType of the breakpoint to remove. -
removeEventListenerBreakpoint(
String eventName, {String? targetName}) → Future< void> -
Removes breakpoint on particular DOM event.
eventNameEvent name.targetNameEventTarget interface name. -
removeInstrumentationBreakpoint(
String eventName) → Future< void> -
Removes breakpoint on particular native event.
eventNameInstrumentation name to stop on. -
removeXHRBreakpoint(
String url) → Future< void> -
Removes breakpoint from XMLHttpRequest.
urlResource URL substring. -
setBreakOnCSPViolation(
List< CSPViolationType> violationTypes) → Future<void> -
Sets breakpoint on particular CSP violations.
violationTypesCSP Violations to stop upon. -
setDOMBreakpoint(
NodeId nodeId, DOMBreakpointType type) → Future< void> -
Sets breakpoint on particular operation with DOM.
nodeIdIdentifier of the node to set breakpoint on.typeType of the operation to stop upon. -
setEventListenerBreakpoint(
String eventName, {String? targetName}) → Future< void> -
Sets breakpoint on particular DOM event.
eventNameDOM Event name to stop on (any DOM event will do).targetNameEventTarget interface name to stop on. If equal to"*"or not provided, will stop on any EventTarget. -
setInstrumentationBreakpoint(
String eventName) → Future< void> -
Sets breakpoint on particular native event.
eventNameInstrumentation name to stop on. -
setXHRBreakpoint(
String url) → Future< void> -
Sets breakpoint on XMLHttpRequest.
urlResource URL substring. All XHRs having this substring in the URL will get stopped upon. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited