Class Scope
Scope description.
public sealed record Scope : IEquatable<Scope>
- Inheritance
-
Scope
- Implements
- Inherited Members
Constructors
Scope(string, RemoteObject)
Scope description.
public Scope(string Type, RemoteObject Object)
Parameters
TypestringScope type.
ObjectRemoteObjectObject representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
Properties
Empty
True if the scope does not declare any variables or have a runtime context. Only present if true. Empty scopes are retained in the scope chain because they can be targeted via evaluateOnCallFrame (using scopeNumber) or matched against scopes in source maps.
public bool? Empty { get; init; }
Property Value
- bool?
EndLocation
Location in the source code where scope ends
public Location? EndLocation { get; init; }
Property Value
Name
public string? Name { get; init; }
Property Value
Object
Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
public RemoteObject Object { get; init; }
Property Value
StartLocation
Location in the source code where scope starts
public Location? StartLocation { get; init; }
Property Value
Type
Scope type.
public string Type { get; init; }