public DebugProcessVM CopyTo(DebugProcessVM other) { other.Filename = Filename; other.CommandLine = CommandLine; other.CurrentDirectory = CurrentDirectory; other.BreakProcessKind = BreakProcessKind; return(other); }
public DebugProcessVM CopyTo(DebugProcessVM other) { other.Filename = this.Filename; other.CommandLine = this.CommandLine; other.CurrentDirectory = this.CurrentDirectory; other.BreakProcessType = this.BreakProcessType; return(other); }
public DebugProcessVM CopyTo(DebugProcessVM other) { other.Filename = this.Filename; other.CommandLine = this.CommandLine; other.CurrentDirectory = this.CurrentDirectory; other.BreakProcessKind = this.BreakProcessKind; return other; }
DebugProcessVM CreateDebugProcessVM(LoadedAssembly asm = null) { // Re-use the previous one if it's the same file if (lastDebugProcessVM != null && asm != null) { if (StringComparer.OrdinalIgnoreCase.Equals(lastDebugProcessVM.Filename, asm.FileName)) return lastDebugProcessVM.Clone(); } var vm = new DebugProcessVM(); if (asm != null) vm.Filename = asm.FileName; vm.BreakProcessType = DebuggerSettings.Instance.BreakProcessType; return vm; }
DebugProcessOptions GetDebugAssemblyOptions(DebugProcessVM vm, bool askUser = true) { if (askUser) { var win = new DebugProcessDlg(); win.DataContext = vm; win.Owner = MainWindow.Instance; if (win.ShowDialog() != true) return null; } var opts = new DebugProcessOptions(new DesktopCLRTypeDebugInfo()); opts.DebugMessageDispatcher = WpfDebugMessageDispatcher.Instance; opts.CurrentDirectory = vm.CurrentDirectory; opts.Filename = vm.Filename; opts.CommandLine = vm.CommandLine; opts.BreakProcessType = vm.BreakProcessType; lastDebugProcessVM = vm; return opts; }
DebugProcessVM CreateDebugProcessVM(IDsDocument asm = null) { // Re-use the previous one if it's the same file if (lastDebugProcessVM != null && asm != null) { if (StringComparer.OrdinalIgnoreCase.Equals(lastDebugProcessVM.Filename, asm.Filename)) return lastDebugProcessVM.Clone(); } var vm = new DebugProcessVM(); if (asm != null) vm.Filename = asm.Filename; vm.BreakProcessKind = DebuggerSettings.BreakProcessKind; return vm; }