예제 #1
0
파일: Utils.cs 프로젝트: levisre/dnSpy
		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;
		}
예제 #2
0
		public bool Attach(AttachOptions options) =>
			dispatcher.UI(() => debugService.Value.Attach(Utils.Convert(options, debugService.Value.DebuggerSettings)));
예제 #3
0
		public bool Attach(int pid) {
			var options = new AttachOptions {
				ProcessId = pid,
			};
			return Attach(options);
		}
예제 #4
0
파일: Debugger.cs 프로젝트: levisre/dnSpy
		public bool Attach(AttachOptions options) {
			return dispatcher.UI(() => debugManager.Value.Attach(Utils.Convert(options, debugManager.Value.DebuggerSettings)));
		}