GetDebugInfo() public method

public GetDebugInfo ( int instructionIndex ) : DebugInfo
instructionIndex int
return DebugInfo
Example #1
0
        public IEnumerable <InterpretedFrameInfo> GetStackTraceDebugInfo()
        {
            InterpretedFrame frame = this;

            do
            {
                yield return(new InterpretedFrameInfo(frame.Name, frame.GetDebugInfo(frame.InstructionIndex)));

                frame = frame.Parent;
            } while (frame != null);
        }