protected async Task HandleScopesRequestAsync( ScopesRequestArguments scopesParams, RequestContext <ScopesResponseBody> requestContext) { VariableScope[] variableScopes = _editorSession.DebugService.GetVariableScopes( scopesParams.FrameId); await requestContext.SendResultAsync( new ScopesResponseBody { Scopes = variableScopes .Select(Scope.Create) .ToArray() }); }
public ScopesResponseBody Scopes(ScopesRequestArguments args) { return (ScopesResponseBody) Process (new DebuggerRequest () { Arguments = args, Command = "scopes" }).Body; }