Example #1
0
		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;
		}
Example #2
0
		public bool Attach(AttachOptions options) =>
			dispatcher.UI(() => debugService.Value.Attach(Utils.Convert(options, debugService.Value.DebuggerSettings)));
Example #3
0
		public bool Attach(int pid) {
			var options = new AttachOptions {
				ProcessId = pid,
			};
			return Attach(options);
		}
Example #4
0
		public bool Attach(AttachOptions options) {
			return dispatcher.UI(() => debugManager.Value.Attach(Utils.Convert(options, debugManager.Value.DebuggerSettings)));
		}