public static DBG.AttachProcessOptions Convert(AttachOptions options, IDebuggerSettings settings, string debuggeeVersion = null) { if (options == null) throw new ArgumentNullException(); var o = new DBG.AttachProcessOptions(new DBG.DesktopCLRTypeAttachInfo(debuggeeVersion)); o.ProcessId = options.ProcessId; o.DebugMessageDispatcher = WpfDebugMessageDispatcher.Instance; o.DebugOptions.IgnoreBreakInstructions = settings.IgnoreBreakInstructions; return o; }
public bool Attach(AttachOptions options) => dispatcher.UI(() => debugService.Value.Attach(Utils.Convert(options, debugService.Value.DebuggerSettings)));
public bool Attach(int pid) { var options = new AttachOptions { ProcessId = pid, }; return Attach(options); }
public bool Attach(AttachOptions options) { return dispatcher.UI(() => debugManager.Value.Attach(Utils.Convert(options, debugManager.Value.DebuggerSettings))); }