Пример #1
0
        void CreateStartupDebugBreakEvent(DebugEventBreakpointType evt, Predicate <DebugEventBreakpointConditionContext> cond = null)
        {
            Debug.Assert(debugger.ProcessState == DebuggerProcessState.Starting);
            DnDebugEventBreakpoint bp = null;

            bp = debugger.CreateBreakpoint(evt, ctx => {
                if (cond == null || cond((DebugEventBreakpointConditionContext)ctx))
                {
                    debugger.RemoveBreakpoint(bp);
                    return(true);
                }
                return(false);
            });
        }
Пример #2
0
 /// <summary>
 /// Creates a debug event breakpoint
 /// </summary>
 /// <param name="eventType">Debug event</param>
 /// <param name="bpCond">Condition or null</param>
 /// <returns></returns>
 public DnDebugEventBreakpoint CreateBreakpoint(DebugEventBreakpointType eventType, IBreakpointCondition bpCond = null)
 {
     DebugVerifyThread();
     var bp = new DnDebugEventBreakpoint(eventType, bpCond);
     debugEventBreakpointList.Add(bp);
     return bp;
 }
Пример #3
0
 /// <summary>
 /// Creates a debug event breakpoint
 /// </summary>
 /// <param name="eventType">Debug event</param>
 /// <param name="cond">Condition</param>
 /// <returns></returns>
 public DnDebugEventBreakpoint CreateBreakpoint(DebugEventBreakpointType eventType, Predicate<BreakpointConditionContext> cond)
 {
     DebugVerifyThread();
     return CreateBreakpoint(eventType, new DelegateBreakpointCondition(cond));
 }
Пример #4
0
 void CreateStartupDebugBreakEvent(DebugEventBreakpointType evt, Predicate<DebugEventBreakpointConditionContext> cond = null)
 {
     Debug.Assert(debugger.ProcessState == DebuggerProcessState.Starting);
     DnDebugEventBreakpoint bp = null;
     bp = debugger.CreateBreakpoint(evt, ctx => {
         if (cond == null || cond((DebugEventBreakpointConditionContext)ctx)) {
             debugger.RemoveBreakpoint(bp);
             return true;
         }
         return false;
     });
 }
Пример #5
0
 internal DnDebugEventBreakpoint(DebugEventBreakpointType eventType, IBreakpointCondition bpCond)
     : base(bpCond)
 {
     this.eventType = eventType;
 }
Пример #6
0
 internal DnDebugEventBreakpoint(DebugEventBreakpointType eventType, IBreakpointCondition bpCond)
     : base(bpCond)
 {
     this.eventType = eventType;
 }