Selectively ignore thrown exceptions in C# code

前端 未结 3 1447
时光取名叫无心
时光取名叫无心 2021-01-06 01:32

I have a function in C# code where a NullReferenceException is thrown periodically (expected behavior), but caught. Is there a way I can tell the Visual Studio debugger to n

3条回答
  •  心在旅途
    2021-01-06 01:47

    You can do this, but it does effect all exceptions in the solution.

    Debug -> Exceptions -> Find... "Null Ref", de-tick Thrown.

提交回复
热议问题