Repository navigation
Expand file tree
/
Copy pathDOMDebugger.json
More file actions
79 lines (79 loc) · 4.62 KB
/
Copy pathDOMDebugger.json
File metadata and controls
79 lines (79 loc) · 4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"domain": "DOMDebugger",
"description": "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.",
"debuggableTypes": ["web-page"],
"targetTypes": ["frame", "page", "worker"],
"types": [
{
"id": "DOMBreakpointType",
"type": "string",
"enum": ["subtree-modified", "attribute-modified", "node-removed"],
"description": "DOM breakpoint type."
},
{
"id": "EventBreakpointType",
"type": "string",
"enum": ["animation-frame", "interval", "listener", "timeout"],
"description": "Event breakpoint type."
}
],
"commands": [
{
"name": "setDOMBreakpoint",
"description": "Sets breakpoint on particular operation with DOM.",
"targetTypes": ["page"],
"parameters": [
{ "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." },
{ "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." },
{ "name": "options", "$ref": "Debugger.BreakpointOptions", "optional": true, "description": "Options to apply to this breakpoint to modify its behavior." }
]
},
{
"name": "removeDOMBreakpoint",
"description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>.",
"targetTypes": ["page"],
"parameters": [
{ "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." },
{ "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." }
]
},
{
"name": "setEventBreakpoint",
"description": "Sets breakpoint on particular event of given type.",
"parameters": [
{ "name": "breakpointType", "$ref": "EventBreakpointType" },
{ "name": "eventName", "type": "string", "optional": true, "description": "The name of the specific event to stop on." },
{ "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, eventName is case sensitive. Defaults to true." },
{ "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats eventName as a regex. Defaults to false." },
{ "name": "options", "$ref": "Debugger.BreakpointOptions", "optional": true, "description": "Options to apply to this breakpoint to modify its behavior." }
]
},
{
"name": "removeEventBreakpoint",
"description": "Removes breakpoint on particular event of given type.",
"parameters": [
{ "name": "breakpointType", "$ref": "EventBreakpointType" },
{ "name": "eventName", "type": "string", "optional": true, "description": "The name of the specific event to stop on." },
{ "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, eventName is case sensitive. Defaults to true." },
{ "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats eventName as a regex. Defaults to false." }
]
},
{
"name": "setURLBreakpoint",
"description": "Sets breakpoint on network activity for the given URL.",
"parameters": [
{ "name": "url", "type": "string", "description": "Resource URL substring or regular expression. All requests having this substring in the URL will get stopped upon. An empty string will pause on all requests." },
{ "name": "isRegex", "type": "boolean", "optional": true, "description": "Whether the URL string is a regular expression." },
{ "name": "options", "$ref": "Debugger.BreakpointOptions", "optional": true, "description": "Options to apply to this breakpoint to modify its behavior." }
]
},
{
"name": "removeURLBreakpoint",
"description": "Removes breakpoint from network activity for the given URL.",
"parameters": [
{ "name": "url", "type": "string", "description": "Resource URL substring. An empty string will stop pausing on all requests." },
{ "name": "isRegex", "type": "boolean", "optional": true, "description": "Whether the URL string is a regular expression." }
]
}
]
}