This module provides a direct mapping of CDP events and commands for v1.3 (stable) of the 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.
Procs
proc getEventListeners(tab: Tab; objectId: string): Future[JsonNode] {. ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
proc getEventListeners(tab: Tab; objectId: string; params: JsonNode): Future[ JsonNode] {....stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
Returns event listeners of the given object.
proc removeDOMBreakpoint(tab: Tab; nodeId: int; type: string): Future[JsonNode] {. ...stackTrace: false, raises: [Exception, ValueError], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
DOMDebugger.removeDOMBreakpoint
Removes DOM breakpoint that was set using setDOMBreakpoint.
proc removeEventListenerBreakpoint(tab: Tab; eventName: string): owned( Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
proc removeEventListenerBreakpoint(tab: Tab; eventName: string; params: JsonNode): owned( Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
DOMDebugger.removeEventListenerBreakpoint
Removes breakpoint on particular DOM event.
proc removeXHRBreakpoint(tab: Tab; url: string): owned(Future[void]) {. ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
DOMDebugger.removeXHRBreakpoint
Removes breakpoint from XMLHttpRequest.
proc setDOMBreakpoint(tab: Tab; nodeId: int; type: string): owned( Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
Sets breakpoint on particular operation with DOM.
proc setEventListenerBreakpoint(tab: Tab; eventName: string): owned( Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
proc setEventListenerBreakpoint(tab: Tab; eventName: string; params: JsonNode): owned( Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
DOMDebugger.setEventListenerBreakpoint
Sets breakpoint on particular DOM event.
proc setXHRBreakpoint(tab: Tab; url: string): owned(Future[void]) {. ...stackTrace: false, raises: [Exception], tags: [RootEffect, WriteIOEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
Sets breakpoint on XMLHttpRequest.