Esempio n. 1
0
        public RuntimeValue GetLocalVariableValue(uint index)
        {
            if (IsIL)
            {
                ICorDebugValue value;
                ComILFrame.GetLocalVariable(index, out value);
                return(new RuntimeValue(Session, value));
            }

            throw new ArgumentException("Can only get variable value from an IL frame.");
        }
Esempio n. 2
0
        public uint GetILOffset(out CorDebugMappingResult result)
        {
            result = CorDebugMappingResult.MAPPING_NO_INFO;

            if (IsIL)
            {
                uint offset;
                ComILFrame.GetIP(out offset, out result);

                return(offset);
            }

            throw new InvalidOperationException("Can only get IL offset from an IL frame.");
        }