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; }
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]; }