JsDebugScope Class
A scope of a frame paused by a debugger (JsDebugFrame.GetScopes): its variables, or its binding object.
public sealed class JsDebugScopeProperties
| Name | Description |
|---|---|
| BindingObject | Gets the object whose properties are the variables of the scope: the global object, or the object of a with statement. Null for the other scopes. |
| Kind | Gets the kind of the scope. |
| Variables | Gets the variables of the scope, in the order of their declarations. The variables of the JsDebugScopeKind.Global and JsDebugScopeKind.With scopes are the properties of their JsDebugScope.BindingObject. |
BindingObject
JsDebugScope.csKind
JsDebugScope.csVariables
JsDebugScope.csGets the variables of the scope, in the order of their declarations. The variables of the JsDebugScopeKind.Global and JsDebugScopeKind.With scopes are the properties of their JsDebugScope.BindingObject.
public IReadOnlyList<JsDebugVariable> Variables { get; }Property value
Methods
| Name | Description |
|---|---|
| TryGetVariable(string, JsDebugVariable) | Gets the variable of the scope that has a name. |
TryGetVariable(string, JsDebugVariable)
JsDebugScope.csGets the variable of the scope that has a name.
public bool TryGetVariable(string name, out JsDebugVariable variable)Parameters
namestring- The name of the variable.
variableJsDebugVariable- The variable, when it is found.
Returns
bool True when the scope has a variable of this name in JsDebugScope.Variables.