Skip to main content

cdp_driver/methods/
dom_debugger.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! DOM debugging allows setting breakpoints on particular DOM operations and
5//! events. JavaScript execution will stop on these operations as if there was
6//! a regular breakpoint set.
7//!
8//! Method names for the `DOMDebugger` domain, for use with
9//! [`CdpClient::call`](crate::CdpClient::call).
10
11/// Returns event listeners of the given object.
12///
13/// Parameters:
14/// - `objectId`: Runtime.RemoteObjectId
15/// - `depth`: integer (optional)
16/// - `pierce`: boolean (optional)
17///
18/// Returns: `listeners`
19pub const GET_EVENT_LISTENERS: &str = "DOMDebugger.getEventListeners";
20
21/// Removes DOM breakpoint that was set using `setDOMBreakpoint`.
22///
23/// Parameters:
24/// - `nodeId`: DOM.NodeId
25/// - `type`: DOMBreakpointType
26pub const REMOVE_DOM_BREAKPOINT: &str = "DOMDebugger.removeDOMBreakpoint";
27
28/// Removes breakpoint on particular DOM event.
29///
30/// Parameters:
31/// - `eventName`: string
32/// - `targetName`: string (optional)
33pub const REMOVE_EVENT_LISTENER_BREAKPOINT: &str = "DOMDebugger.removeEventListenerBreakpoint";
34
35/// Removes breakpoint on particular native event.
36///
37/// Deprecated in the protocol.
38/// Experimental: may change without notice.
39///
40/// Parameters:
41/// - `eventName`: string
42pub const REMOVE_INSTRUMENTATION_BREAKPOINT: &str = "DOMDebugger.removeInstrumentationBreakpoint";
43
44/// Removes breakpoint from XMLHttpRequest.
45///
46/// Parameters:
47/// - `url`: string
48pub const REMOVE_XHR_BREAKPOINT: &str = "DOMDebugger.removeXHRBreakpoint";
49
50/// Sets breakpoint on particular CSP violations.
51///
52/// Experimental: may change without notice.
53///
54/// Parameters:
55/// - `violationTypes`: array
56pub const SET_BREAK_ON_CSP_VIOLATION: &str = "DOMDebugger.setBreakOnCSPViolation";
57
58/// Sets breakpoint on particular operation with DOM.
59///
60/// Parameters:
61/// - `nodeId`: DOM.NodeId
62/// - `type`: DOMBreakpointType
63pub const SET_DOM_BREAKPOINT: &str = "DOMDebugger.setDOMBreakpoint";
64
65/// Sets breakpoint on particular DOM event.
66///
67/// Parameters:
68/// - `eventName`: string
69/// - `targetName`: string (optional)
70pub const SET_EVENT_LISTENER_BREAKPOINT: &str = "DOMDebugger.setEventListenerBreakpoint";
71
72/// Sets breakpoint on particular native event.
73///
74/// Deprecated in the protocol.
75/// Experimental: may change without notice.
76///
77/// Parameters:
78/// - `eventName`: string
79pub const SET_INSTRUMENTATION_BREAKPOINT: &str = "DOMDebugger.setInstrumentationBreakpoint";
80
81/// Sets breakpoint on XMLHttpRequest.
82///
83/// Parameters:
84/// - `url`: string
85pub const SET_XHR_BREAKPOINT: &str = "DOMDebugger.setXHRBreakpoint";