void CreateStartupDebugBreakEvent(DebugEventBreakpointKind evt, Func<DebugEventBreakpointConditionContext, bool>? cond = null) { Debug.Assert(debugger.ProcessState == DebuggerProcessState.Starting); DnDebugEventBreakpoint? bp = null; bp = debugger.CreateBreakpoint(evt, ctx => { if (cond is null || cond(ctx)) { debugger.RemoveBreakpoint(bp!); return true; } return false; });
void CreateStartupDebugBreakEvent(DebugEventBreakpointKind evt, Func<DebugEventBreakpointConditionContext, bool> cond = null) { Debug.Assert(debugger.ProcessState == DebuggerProcessState.Starting); DnDebugEventBreakpoint bp = null; bp = debugger.CreateBreakpoint(evt, ctx => { if (cond == null || cond(ctx)) { debugger.RemoveBreakpoint(bp); return true; } return false; }); }
internal DnDebugEventBreakpoint(DebugEventBreakpointKind eventKind, Func <DebugEventBreakpointConditionContext, bool> cond) { this.eventKind = eventKind; this.cond = cond ?? defaultCond; }
/// <summary> /// Creates a debug event breakpoint /// </summary> /// <param name="eventKind">Debug event</param> /// <param name="cond">Condition</param> /// <returns></returns> public DnDebugEventBreakpoint CreateBreakpoint(DebugEventBreakpointKind eventKind, Func<DebugEventBreakpointConditionContext, bool> cond) { DebugVerifyThread(); var bp = new DnDebugEventBreakpoint(eventKind, cond); debugEventBreakpointList.Add(bp); return bp; }
internal DnDebugEventBreakpoint(DebugEventBreakpointKind eventKind, Func <DebugEventBreakpointConditionContext, bool>?cond) { EventKind = eventKind; Condition = cond ?? defaultCond; }
internal DnDebugEventBreakpoint(DebugEventBreakpointKind eventKind, Func<DebugEventBreakpointConditionContext, bool> cond) { EventKind = eventKind; Condition = cond ?? defaultCond; }