コード例 #1
0
        public int DisplayValue(IntPtr hwnd, uint dwID, object pHostServices, IDebugProperty3 pDebugProperty) {
            var property = pDebugProperty as AD7Property;
            if (property == null || property.StackFrame.Engine.GridViewProvider == null) {
                return VSConstants.E_FAIL;
            }

            property.StackFrame.Engine.GridViewProvider.ShowDataGrid(property.EvaluationResult);
            return VSConstants.S_OK;
        }
コード例 #2
0
        public AsVariable(IDebugProperty3 debugProperty)
        {
            int hr = VSConstants.S_OK;

            DEBUG_PROPERTY_INFO[] propertyInfo = new DEBUG_PROPERTY_INFO[1];
            hr = debugProperty.GetPropertyInfo(
                enum_DEBUGPROP_INFO_FLAGS.DEBUGPROP_INFO_ALL,
                100, //dwRadix
                10000, //dwTimeout
                new IDebugReference2[] { },
                0,
                propertyInfo);

            if(hr != VSConstants.S_OK)
            {
                throw new Exception("AsVariable : IDebugProperty3.GetPropertyInfo failed");
            }

            debugPropertyInfo_ = propertyInfo[0];
        }