(response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments)
| 819 | } |
| 820 | |
| 821 | protected scopesRequest(response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments): void { |
| 822 | const frameId = args.frameId; |
| 823 | const data = this.threadManager.getStoredData(frameId); |
| 824 | const frame: VMFrame = data.data as VMFrame; |
| 825 | |
| 826 | // TODO: class variables? library variables? |
| 827 | |
| 828 | const variablesReference = data.thread.storeData(frame); |
| 829 | const scopes: Scope[] = []; |
| 830 | |
| 831 | if (data.thread.exceptionReference) { |
| 832 | scopes.push(new Scope("Exceptions", data.thread.exceptionReference)); |
| 833 | } |
| 834 | |
| 835 | scopes.push(new Scope("Locals", variablesReference)); |
| 836 | |
| 837 | response.body = { scopes }; |
| 838 | this.sendResponse(response); |
| 839 | } |
| 840 | |
| 841 | protected async variablesRequest(response: DebugProtocol.VariablesResponse, args: DebugProtocol.VariablesArguments): Promise<void> { |
| 842 | if (!this.vmService) { |
nothing calls this directly
no test coverage detected