devtools-protocol 0.0.1742540 → 0.0.1743766
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/json/js_protocol.json
CHANGED
|
@@ -574,6 +574,28 @@
|
|
|
574
574
|
}
|
|
575
575
|
]
|
|
576
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"name": "getScopeChain",
|
|
579
|
+
"description": "Returns the current scope chain of the given call frame. Unlike the scope chain reported\nwith the `paused` event, it reflects changes made to variables since then (e.g. via\n`evaluateOnCallFrame` or `setVariableValue`).",
|
|
580
|
+
"experimental": true,
|
|
581
|
+
"parameters": [
|
|
582
|
+
{
|
|
583
|
+
"name": "callFrameId",
|
|
584
|
+
"description": "Call frame identifier to get the scope chain for.",
|
|
585
|
+
"$ref": "CallFrameId"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"returns": [
|
|
589
|
+
{
|
|
590
|
+
"name": "scopeChain",
|
|
591
|
+
"description": "Scope chain for the call frame.",
|
|
592
|
+
"type": "array",
|
|
593
|
+
"items": {
|
|
594
|
+
"$ref": "Scope"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
},
|
|
577
599
|
{
|
|
578
600
|
"name": "getScriptSource",
|
|
579
601
|
"description": "Returns source for the script with given id.",
|
package/package.json
CHANGED
package/pdl/js_protocol.pdl
CHANGED
|
@@ -246,6 +246,17 @@ domain Debugger
|
|
|
246
246
|
# List of the possible breakpoint locations.
|
|
247
247
|
array of BreakLocation locations
|
|
248
248
|
|
|
249
|
+
# Returns the current scope chain of the given call frame. Unlike the scope chain reported
|
|
250
|
+
# with the `paused` event, it reflects changes made to variables since then (e.g. via
|
|
251
|
+
# `evaluateOnCallFrame` or `setVariableValue`).
|
|
252
|
+
experimental command getScopeChain
|
|
253
|
+
parameters
|
|
254
|
+
# Call frame identifier to get the scope chain for.
|
|
255
|
+
CallFrameId callFrameId
|
|
256
|
+
returns
|
|
257
|
+
# Scope chain for the call frame.
|
|
258
|
+
array of Scope scopeChain
|
|
259
|
+
|
|
249
260
|
# Returns source for the script with given id.
|
|
250
261
|
command getScriptSource
|
|
251
262
|
parameters
|
|
@@ -1146,6 +1146,16 @@ export namespace ProtocolMapping {
|
|
|
1146
1146
|
paramsType: [Protocol.Debugger.GetPossibleBreakpointsRequest];
|
|
1147
1147
|
returnType: Protocol.Debugger.GetPossibleBreakpointsResponse;
|
|
1148
1148
|
};
|
|
1149
|
+
/**
|
|
1150
|
+
* Returns the current scope chain of the given call frame. Unlike the scope chain reported
|
|
1151
|
+
* with the `paused` event, it reflects changes made to variables since then (e.g. via
|
|
1152
|
+
* `evaluateOnCallFrame` or `setVariableValue`).
|
|
1153
|
+
* @experimental
|
|
1154
|
+
*/
|
|
1155
|
+
'Debugger.getScopeChain': {
|
|
1156
|
+
paramsType: [Protocol.Debugger.GetScopeChainRequest];
|
|
1157
|
+
returnType: Protocol.Debugger.GetScopeChainResponse;
|
|
1158
|
+
};
|
|
1149
1159
|
/**
|
|
1150
1160
|
* Returns source for the script with given id.
|
|
1151
1161
|
*/
|
|
@@ -187,6 +187,14 @@ export namespace ProtocolProxyApi {
|
|
|
187
187
|
*/
|
|
188
188
|
getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<Protocol.Debugger.GetPossibleBreakpointsResponse>;
|
|
189
189
|
|
|
190
|
+
/**
|
|
191
|
+
* Returns the current scope chain of the given call frame. Unlike the scope chain reported
|
|
192
|
+
* with the `paused` event, it reflects changes made to variables since then (e.g. via
|
|
193
|
+
* `evaluateOnCallFrame` or `setVariableValue`).
|
|
194
|
+
* @experimental
|
|
195
|
+
*/
|
|
196
|
+
getScopeChain(params: Protocol.Debugger.GetScopeChainRequest): Promise<Protocol.Debugger.GetScopeChainResponse>;
|
|
197
|
+
|
|
190
198
|
/**
|
|
191
199
|
* Returns source for the script with given id.
|
|
192
200
|
*/
|
|
@@ -189,6 +189,14 @@ export namespace ProtocolTestsProxyApi {
|
|
|
189
189
|
*/
|
|
190
190
|
getPossibleBreakpoints(params: Protocol.Debugger.GetPossibleBreakpointsRequest): Promise<{id: number, result: Protocol.Debugger.GetPossibleBreakpointsResponse, sessionId: string}>;
|
|
191
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Returns the current scope chain of the given call frame. Unlike the scope chain reported
|
|
194
|
+
* with the `paused` event, it reflects changes made to variables since then (e.g. via
|
|
195
|
+
* `evaluateOnCallFrame` or `setVariableValue`).
|
|
196
|
+
* @experimental
|
|
197
|
+
*/
|
|
198
|
+
getScopeChain(params: Protocol.Debugger.GetScopeChainRequest): Promise<{id: number, result: Protocol.Debugger.GetScopeChainResponse, sessionId: string}>;
|
|
199
|
+
|
|
192
200
|
/**
|
|
193
201
|
* Returns source for the script with given id.
|
|
194
202
|
*/
|
package/types/protocol.d.ts
CHANGED
|
@@ -437,6 +437,20 @@ export namespace Protocol {
|
|
|
437
437
|
locations: BreakLocation[];
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
+
export interface GetScopeChainRequest {
|
|
441
|
+
/**
|
|
442
|
+
* Call frame identifier to get the scope chain for.
|
|
443
|
+
*/
|
|
444
|
+
callFrameId: CallFrameId;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export interface GetScopeChainResponse {
|
|
448
|
+
/**
|
|
449
|
+
* Scope chain for the call frame.
|
|
450
|
+
*/
|
|
451
|
+
scopeChain: Scope[];
|
|
452
|
+
}
|
|
453
|
+
|
|
440
454
|
export interface GetScriptSourceRequest {
|
|
441
455
|
/**
|
|
442
456
|
* Id of the script to get source for.
|