Exemple #1
0
        private void DebugBreakpoint_BreakpointHit(object sender, EventArgs e)
        {
            var bps = new AD7BoundBreakpointEnum(new IDebugBoundBreakpoint2[] { this });
            var evt = new AD7BreakpointEvent(bps);

            PendingBreakpoint.Engine.Send(evt, AD7BreakpointEvent.IID);
        }
Exemple #2
0
        private void Session_Browse(object sender, DebugBrowseEventArgs e)
        {
            lock (_browseLock) {
                _currentBrowseEventArgs = e;
                _sentContinue           = false;
            }

            // If we hit a breakpoint or completed a step, we have already reported the stop from the corresponding handlers.
            // Otherwise, this is just a random Browse prompt, so raise a dummy breakpoint event with no breakpoints to stop.
            if (e.BreakpointsHit.Count == 0 && !e.IsStepCompleted)
            {
                var bps = new AD7BoundBreakpointEnum(new IDebugBoundBreakpoint2[0]);
                var evt = new AD7BreakpointEvent(bps);
                Send(evt, AD7BreakpointEvent.IID);
            }
        }