예제 #1
0
        public void BreakWhenThrown(ExceptionType type, string name)
        {
            var key = new ExceptionInfoKey(type, name);

            if (!exceptionService.Exists(key))
            {
                exceptionService.Add(key);
            }
            var vm = Collection.FirstOrDefault(a => a.ExceptionInfo.Key.Equals(key));

            Debug.Assert(vm != null);
            if (vm != null)
            {
                vm.BreakOnFirstChance = true;
            }
        }