コード例 #1
0
ファイル: Debugger.cs プロジェクト: pashav15/pashav
 public IEventBreakpoint CreateBreakpoint(DebugEventKind eventKind, Func <IEventBreakpoint, IDebugEventContext, bool> cond) => dispatcher.UI(() => {
     var bp = new EventBreakpoint(this, eventKind, cond);
     if (theDebugger.IsDebugging)
     {
         Debug.Assert(breakpointsToInitialize.Count == 0);
         Initialize(bp);
     }
     else
     {
         breakpointsToInitialize.Add(bp);
     }
     return(bp);
 });
コード例 #2
0
ファイル: Debugger.cs プロジェクト: manojdjoshi/dnSpy
		public IEventBreakpoint CreateBreakpoint(DebugEventKind eventKind, Func<IEventBreakpoint, IDebugEventContext, bool> cond) => dispatcher.UI(() => {
			var bp = new EventBreakpoint(this, eventKind, cond);
			if (theDebugger.IsDebugging) {
				Debug.Assert(breakpointsToInitialize.Count == 0);
				Initialize(bp);
			}
			else
				breakpointsToInitialize.Add(bp);
			return bp;
		});