DOMDebuggerApi class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getEventListeners(RemoteObjectId objectId, {int? depth, bool? pierce}) Future<List<EventListener>>
Returns event listeners of the given object. objectId Identifier of the object to return listeners for. depth The 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. pierce Whether 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 non-existent method or property is accessed. [...]
inherited
removeDOMBreakpoint(NodeId nodeId, DOMBreakpointType type) Future<void>
Removes DOM breakpoint that was set using setDOMBreakpoint. nodeId Identifier of the node to remove breakpoint from. type Type of the breakpoint to remove.
removeEventListenerBreakpoint(String eventName, {String? targetName}) Future<void>
Removes breakpoint on particular DOM event. eventName Event name. targetName EventTarget interface name.
removeInstrumentationBreakpoint(String eventName) Future<void>
Removes breakpoint on particular native event. eventName Instrumentation name to stop on.
removeXHRBreakpoint(String url) Future<void>
Removes breakpoint from XMLHttpRequest. url Resource URL substring.
setBreakOnCSPViolation(List<CSPViolationType> violationTypes) Future<void>
Sets breakpoint on particular CSP violations. violationTypes CSP Violations to stop upon.
setDOMBreakpoint(NodeId nodeId, DOMBreakpointType type) Future<void>
Sets breakpoint on particular operation with DOM. nodeId Identifier of the node to set breakpoint on. type Type of the operation to stop upon.
setEventListenerBreakpoint(String eventName, {String? targetName}) Future<void>
Sets breakpoint on particular DOM event. eventName DOM Event name to stop on (any DOM event will do). targetName EventTarget 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. eventName Instrumentation name to stop on.
setXHRBreakpoint(String url) Future<void>
Sets breakpoint on XMLHttpRequest. url Resource 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