]> git.saurik.com Git - apple/javascriptcore.git/blob - inspector/protocol/DOMDebugger.json
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / inspector / protocol / DOMDebugger.json
1 {
2 "domain": "DOMDebugger",
3 "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.",
4 "availability": "web",
5 "types": [
6 {
7 "id": "DOMBreakpointType",
8 "type": "string",
9 "enum": ["subtree-modified", "attribute-modified", "node-removed"],
10 "description": "DOM breakpoint type."
11 }
12 ],
13 "commands": [
14 {
15 "name": "setDOMBreakpoint",
16 "parameters": [
17 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." },
18 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." }
19 ],
20 "description": "Sets breakpoint on particular operation with DOM."
21 },
22 {
23 "name": "removeDOMBreakpoint",
24 "parameters": [
25 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." },
26 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." }
27 ],
28 "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>."
29 },
30 {
31 "name": "setEventListenerBreakpoint",
32 "parameters": [
33 { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." }
34 ],
35 "description": "Sets breakpoint on particular DOM event."
36 },
37 {
38 "name": "removeEventListenerBreakpoint",
39 "parameters": [
40 { "name": "eventName", "type": "string", "description": "Event name." }
41 ],
42 "description": "Removes breakpoint on particular DOM event."
43 },
44 {
45 "name": "setInstrumentationBreakpoint",
46 "parameters": [
47 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." }
48 ],
49 "description": "Sets breakpoint on particular native event."
50 },
51 {
52 "name": "removeInstrumentationBreakpoint",
53 "parameters": [
54 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." }
55 ],
56 "description": "Sets breakpoint on particular native event."
57 },
58 {
59 "name": "setXHRBreakpoint",
60 "parameters": [
61 { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
62 ],
63 "description": "Sets breakpoint on XMLHttpRequest."
64 },
65 {
66 "name": "removeXHRBreakpoint",
67 "parameters": [
68 { "name": "url", "type": "string", "description": "Resource URL substring." }
69 ],
70 "description": "Removes breakpoint from XMLHttpRequest."
71 }
72 ]
73 }