Ejemplo n.º 1
0
        public IReadOnlyList <Breakpoint> GetBreakpoints()
        {
            return(RunAsync(() => {
                uint count;
                Control.GetNumberBreakpoints(out count).ThrowIfFailed();
                var breakpoints = new List <Breakpoint>((int)count);

                for (uint i = 0; i < count; i++)
                {
                    IDebugBreakpoint bp;
                    Control.GetBreakpointByIndex(i, out bp);
                    breakpoints.Add(new Breakpoint(this, (IDebugBreakpoint3)bp));
                }
                return breakpoints;
            }).Result);
        }