private IDebugErrorBreakpoint2 GetWatchpointError() { IEnumDebugErrorBreakpoints2 errorBreakpointsEnum; watchpoint.EnumErrorBreakpoints(enum_BP_ERROR_TYPE.BPET_ALL, out errorBreakpointsEnum); IDebugErrorBreakpoint2[] breakpointErrors = new IDebugErrorBreakpoint2[1]; uint fetchedIndex = 0; errorBreakpointsEnum.Next(1, breakpointErrors, ref fetchedIndex); return(breakpointErrors[0]); }