public void Initialize(DnDebugger dbg) { Debug.Assert(debugger.Dispatcher.CheckAccess()); Debug.Assert(dbgBreakpoint == null); if (dbgBreakpoint != null) { throw new InvalidOperationException(); } dbgBreakpoint = dbg.CreateBreakpoint(module.ToSerializedDnModule(), token, offset, a => cond(this)); dbgBreakpoint.IsEnabled = isEnabled; dbgBreakpoint.Tag = this; }