VSNDK.DebugEngine.EngineCallback.OnBreakpoint C# (CSharp) Method

OnBreakpoint() public method

Send an event to SDM with the breakpoint that was hit.
public OnBreakpoint ( AD7Thread thread, IList clients ) : void
thread AD7Thread The thread running in a program.
clients IList List of bound breakpoints. At this moment, this list has only one element.
return void
        public void OnBreakpoint(AD7Thread thread, IList<IDebugBoundBreakpoint2> clients)
        {
            IDebugBoundBreakpoint2[] boundBreakpoints = new IDebugBoundBreakpoint2[clients.Count];

            int i = 0;
            foreach (object objCurrentBreakpoint in clients)
            {
                boundBreakpoints[i] = (IDebugBoundBreakpoint2)objCurrentBreakpoint;
                i++;
            }

            AD7BoundBreakpointsEnum boundBreakpointsEnum = new AD7BoundBreakpointsEnum(boundBreakpoints);
            AD7BreakpointEvent eventObject = new AD7BreakpointEvent(boundBreakpointsEnum);

            Send(eventObject, AD7BreakpointEvent.IID, thread);
        }