(scope: "Exceptions" | "Locals")
| 262 | } |
| 263 | |
| 264 | public async getTopFrameVariables(scope: "Exceptions" | "Locals"): Promise<DebugProtocol.Variable[]> { |
| 265 | const stack = await this.getStack(); |
| 266 | const scopes = await this.scopesRequest({ frameId: stack.body.stackFrames[0].id }); |
| 267 | const s = scopes.body.scopes.find((s) => s.name === scope); |
| 268 | assert.ok(s); |
| 269 | return this.getVariables(s.variablesReference); |
| 270 | } |
| 271 | |
| 272 | public async getVariables(variablesReference: number): Promise<DebugProtocol.Variable[]> { |
| 273 | const variables = await this.variablesRequest({ variablesReference }); |
no test coverage detected