public MonoStackFrame(MonoThread thread, DebuggedMonoProcess debuggedMonoProcess, StackFrame frame) { this.thread = thread; this.debuggedMonoProcess = debuggedMonoProcess; this.frame = frame; docContext = new MonoDocumentContext(this.frame.FileName, this.frame.LineNumber, this.frame.ColumnNumber); var locals = frame.GetVisibleVariables().ToList(); this.locals = locals.Select(x => new MonoProperty(frame, x)).ToList(); }
public AD7StackFrame(AD7Engine engine, AD7Thread thread, Mono.Debugger.Soft.StackFrame threadContext) { Debug.Assert(threadContext != null, "ThreadContext is null"); Engine = engine; Thread = thread; ThreadContext = threadContext; _textPosition = RoslynHelper.GetStatementRange(ThreadContext.FileName, ThreadContext.LineNumber, ThreadContext.ColumnNumber); _functionName = threadContext.Method.Name; if (_textPosition != null) { docContext = new AD7DocumentContext(_textPosition); } this.LocalVariables = threadContext.GetVisibleVariables().Select(x => new MonoProperty(threadContext, x)).ToList(); }