public IILBreakpoint CreateBreakpoint(uint offset, Func <IILBreakpoint, bool> cond) => debugger.Dispatcher.UI(() => { var func = this.CorCode.Function; var mod = func?.Module; uint token = func?.Token ?? 0; var module = mod == null ? new ModuleId() : mod.DnModuleId.ToModuleId(); return(debugger.CreateBreakpoint(module, token, offset, cond)); });
public IILBreakpoint CreateBreakpoint(uint offset, Func <IILBreakpoint, bool> cond) { return(debugger.Dispatcher.UI(() => { var mod = func.Module; var module = mod == null ? new ModuleName() : mod.SerializedDnModule.ToModuleName(); return debugger.CreateBreakpoint(module, func.Token, offset, cond); })); }