Example #1
0
        public ObjectValue[] GetLocalVariables(EvaluationOptions options)
        {
            if (!hasDebugInfo)
            {
                DebuggerLoggingService.LogMessage("Cannot get local variables: no debugging symbols for frame: {0}", this);
                return(new ObjectValue [0]);
            }

            var values = sourceBacktrace.GetLocalVariables(index, options);

            ObjectValue.ConnectCallbacks(this, values);
            return(values);
        }
Example #2
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);
        }
Example #3
0
        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]);
        }