A Scope is a named container for variables. Optionally a scope can map to a source or a range within a source.

Fields

variablesReference:Int

The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest.

@:optionaloptionalsource:Null<Source>

Optional source for this scope.

@:optionaloptionalpresentationHint:Null<ScopePresentationHint>

An optional hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI. Values: 'arguments': Scope contains method arguments. 'locals': Scope contains local variables. 'registers': Scope contains registers. Only a single 'registers' scope should be returned from a 'scopes' request. etc.

@:optionaloptionalnamedVariables:Null<Int>

The number of named variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

name:String

Name of the scope such as 'Arguments', 'Locals'.

@:optionaloptionalline:Null<Int>

Optional start line of the range covered by this scope.

@:optionaloptionalindexedVariables:Null<Int>

The number of indexed variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

expensive:Bool

If true, the number of variables in this scope is large or expensive to retrieve.

@:optionaloptionalendLine:Null<Int>

Optional end line of the range covered by this scope.

@:optionaloptionalendColumn:Null<Int>

Optional end column of the range covered by this scope.

@:optionaloptionalcolumn:Null<Int>

Optional start column of the range covered by this scope.