Пример #1
0
 public IILBreakpoint CreateBreakpoint(ModuleId module, uint token, uint offset, Func <IILBreakpoint, bool> cond) => dispatcher.UI(() => {
     var bp = new ILBreakpoint(this, module, token, offset, cond);
     if (theDebugger.IsDebugging)
     {
         Debug.Assert(breakpointsToInitialize.Count == 0);
         Initialize(bp);
     }
     else
     {
         breakpointsToInitialize.Add(bp);
     }
     return(bp);
 });
Пример #2
0
		public IILBreakpoint CreateBreakpoint(ModuleId module, uint token, uint offset, Func<IILBreakpoint, bool> cond) => dispatcher.UI(() => {
			var bp = new ILBreakpoint(this, module, token, offset, cond);
			if (theDebugger.IsDebugging) {
				Debug.Assert(breakpointsToInitialize.Count == 0);
				Initialize(bp);
			}
			else
				breakpointsToInitialize.Add(bp);
			return bp;
		});