Example #1
0
 public DebugProcessVM CopyTo(DebugProcessVM other)
 {
     other.Filename         = Filename;
     other.CommandLine      = CommandLine;
     other.CurrentDirectory = CurrentDirectory;
     other.BreakProcessKind = BreakProcessKind;
     return(other);
 }
Example #2
0
 public DebugProcessVM CopyTo(DebugProcessVM other)
 {
     other.Filename         = this.Filename;
     other.CommandLine      = this.CommandLine;
     other.CurrentDirectory = this.CurrentDirectory;
     other.BreakProcessType = this.BreakProcessType;
     return(other);
 }
Example #3
0
		public DebugProcessVM CopyTo(DebugProcessVM other) {
			other.Filename = this.Filename;
			other.CommandLine = this.CommandLine;
			other.CurrentDirectory = this.CurrentDirectory;
			other.BreakProcessKind = this.BreakProcessKind;
			return other;
		}
Example #4
0
        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;
        }
Example #5
0
        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;
        }
Example #6
0
		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;
		}