public ObjectValue[] GetAllLocals(EvaluationOptions options) { if (!hasDebugInfo) { return(new ObjectValue [0]); } ObjectValue[] values = sourceBacktrace.GetAllLocals(index, options); ObjectValue.ConnectCallbacks(this, values); return(values); }
public ObjectValue GetThisReference(EvaluationOptions options) { if (!hasDebugInfo) { return(null); } ObjectValue value = sourceBacktrace.GetThisReference(index, options); ObjectValue.ConnectCallbacks(this, value); return(value); }
public ObjectValue[] GetAllLocals(EvaluationOptions options) { if (!hasDebugInfo) { DebuggerLoggingService.LogMessage("Cannot get local variables: no debugging symbols for frame: {0}", this); return(new ObjectValue [0]); } var values = sourceBacktrace.GetAllLocals(index, options); ObjectValue.ConnectCallbacks(this, values); return(values); }
public ObjectValue GetExpressionValue(string expression, EvaluationOptions options) { if (!hasDebugInfo) { return(ObjectValue.CreateUnknown(expression)); } if (options.UseExternalTypeResolver) { expression = ResolveExpression(expression); } ObjectValue[] values = sourceBacktrace.GetExpressionValues(index, new string[] { expression }, options); ObjectValue.ConnectCallbacks(this, values); return(values [0]); }
public ObjectValue GetThisReference(EvaluationOptions options) { if (!hasDebugInfo) { DebuggerLoggingService.LogMessage("Cannot get `this' reference: no debugging symbols for frame: {0}", this); return(null); } var value = sourceBacktrace.GetThisReference(index, options); if (value != null) { ObjectValue.ConnectCallbacks(this, value); } return(value); }
public ObjectValue GetExpressionValue(string expression, EvaluationOptions options) { if (!hasDebugInfo) { DebuggerLoggingService.LogMessage("Cannot get expression value: no debugging symbols for frame: {0}", this); return(ObjectValue.CreateUnknown(expression)); } if (options.UseExternalTypeResolver) { expression = ResolveExpression(expression); } var values = sourceBacktrace.GetExpressionValues(index, new [] { expression }, options); ObjectValue.ConnectCallbacks(this, values); return(values [0]); }
public ObjectValue[] GetExpressionValues(string[] expressions, EvaluationOptions options) { if (!hasDebugInfo) { ObjectValue[] vals = new ObjectValue [expressions.Length]; for (int n = 0; n < expressions.Length; n++) { vals [n] = ObjectValue.CreateUnknown(expressions [n]); } return(vals); } if (options.UseExternalTypeResolver) { string[] resolved = new string [expressions.Length]; for (int n = 0; n < expressions.Length; n++) { resolved [n] = ResolveExpression(expressions [n]); } expressions = resolved; } ObjectValue[] values = sourceBacktrace.GetExpressionValues(index, expressions, options); ObjectValue.ConnectCallbacks(this, values); return(values); }
internal void ConnectCallback(StackFrame parentFrame) { ObjectValue.ConnectCallbacks(parentFrame, exception); }