Пример #1
0
 int IDebugBreakpointBoundEvent2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum)
 {
     IDebugBoundBreakpoint2[] boundBreakpoints = new IDebugBoundBreakpoint2[1];
     boundBreakpoints[0] = m_boundBreakpoint;
     ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints);
     return(VSConstants.S_OK);
 }
Пример #2
0
        // Enumerates all breakpoints bound from this pending breakpoint
        int IDebugPendingBreakpoint2.EnumBoundBreakpoints(out IEnumDebugBoundBreakpoints2 ppEnum)
        {
            ppEnum = null;

            if (_breakpoint != null)
            {
                lock (_breakpoint) {
                    IDebugBoundBreakpoint2[] boundBreakpoints = _breakpoint.GetBindings()
                                                                .Select(binding => _bpManager.GetBoundBreakpoint(binding))
                                                                .Cast <IDebugBoundBreakpoint2>().ToArray();

                    ppEnum = new AD7BoundBreakpointsEnum(boundBreakpoints);
                }
            }

            return(VSConstants.S_OK);
        }