Exemplo n.º 1
0
 public IAnyEventBreakpoint CreateAnyEventBreakpoint(Func <IAnyEventBreakpoint, IDebugEventContext, bool> cond) => dispatcher.UI(() => {
     var bp = new AnyEventBreakpoint(this, cond);
     if (theDebugger.IsDebugging)
     {
         Debug.Assert(breakpointsToInitialize.Count == 0);
         Initialize(bp);
     }
     else
     {
         breakpointsToInitialize.Add(bp);
     }
     return(bp);
 });
Exemplo n.º 2
0
		public IAnyEventBreakpoint CreateAnyEventBreakpoint(Func<IAnyEventBreakpoint, IDebugEventContext, bool> cond) => dispatcher.UI(() => {
			var bp = new AnyEventBreakpoint(this, cond);
			if (theDebugger.IsDebugging) {
				Debug.Assert(breakpointsToInitialize.Count == 0);
				Initialize(bp);
			}
			else
				breakpointsToInitialize.Add(bp);
			return bp;
		});