예제 #1
0
파일: Debugger.cs 프로젝트: pashav15/pashav
 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;
		});