MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / scopesRequest

Function scopesRequest

src/debug/dart_debug_impl.ts:821–839  ·  view source on GitHub ↗
(response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

getStoredDataMethod · 0.80
sendResponseMethod · 0.80
storeDataMethod · 0.45

Tested by

no test coverage detected