Exemple #1
0
 bool CalculateIsVisible(ExceptionVM vm, string filterText)
 {
     Debug.Assert(filterText != null && filterText.Trim().ToUpperInvariant() == filterText);
     if (ShowOnlyEnabledExceptions && !vm.BreakOnFirstChance)
     {
         return(false);
     }
     return(string.IsNullOrEmpty(filterText) || vm.Name.ToUpperInvariant().Contains(filterText));
 }
Exemple #2
0
 public void WriteName(ExceptionVM vm)
 {
     if (vm.ExceptionInfo.IsOtherExceptions)
     {
         output.Write(BoxedTextColor.Text, vm.Name);
     }
     else
     {
         WriteFullTypeName(vm.Name);
     }
 }
Exemple #3
0
 public void WriteName(ExceptionVM vm)
 {
     if (vm.ExceptionInfo.IsOtherExceptions)
     {
         output.Write(vm.Name, TextTokenKind.Text);
     }
     else
     {
         WriteFullTypeName(vm.Name);
     }
 }
Exemple #4
0
        void Add(ExceptionInfo info)
        {
            var vm = new ExceptionVM(info, exceptionContext);
            int i;

            for (i = 0; i + 1 < Collection.Count; i++)
            {
                int res = CompareExceptionInfos(vm.ExceptionInfo, Collection[i].ExceptionInfo);
                if (res <= 0)
                {
                    break;
                }
            }
            Collection.Insert(i, vm);
        }
		public void WriteName(ExceptionVM vm) {
			if (vm.ExceptionInfo.IsOtherExceptions)
				output.Write(vm.Name, TextTokenKind.Text);
			else
				WriteFullTypeName(vm.Name);
		}
Exemple #6
0
		bool CalculateIsVisible(ExceptionVM vm, string filterText) {
			Debug.Assert(filterText != null && filterText.Trim().ToUpperInvariant() == filterText);
			if (ShowOnlyEnabledExceptions && !vm.BreakOnFirstChance)
				return false;
			return string.IsNullOrEmpty(filterText) || vm.Name.ToUpperInvariant().Contains(filterText);
		}
Exemple #7
0
		ExceptionVM[] GetRemovableExceptions(ExceptionVM[] items) => items.Where(a => exceptionService.CanRemove(a.ExceptionInfo)).ToArray();
Exemple #8
0
		void Add(ExceptionInfo info) {
			var vm = new ExceptionVM(info, exceptionContext);
			int i;
			for (i = 0; i + 1 < Collection.Count; i++) {
				int res = CompareExceptionInfos(vm.ExceptionInfo, Collection[i].ExceptionInfo);
				if (res <= 0)
					break;
			}
			Collection.Insert(i, vm);
		}
		public void WriteName(ExceptionVM vm) {
			if (vm.ExceptionInfo.IsOtherExceptions)
				output.Write(BoxedTextColor.Text, vm.Name);
			else
				WriteFullTypeName(vm.Name);
		}
Exemple #10
0
		static ExceptionVM[] GetRemovableExceptions(ExceptionVM[] items) {
			return items.Where(a => ExceptionManager.Instance.CanRemove(a.ExceptionInfo)).ToArray();
		}