Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Debugger: Ignore handled exceptions?

$
0
0

Using the latest Visual Studio 2019. Is there a way to tell the Debugger to ignore handled exceptions?

On startup of my application on localhost a NullReferenceException can be thrown.  This is entirely expected and properly handed in the code via a try/catch block. However, the debugger insist on performing a break on error even though I've handled it.

Yes, I know I can tell the debugger to ignore specific CLR errors. The problem is that enabling this feature instructs the debugger to ignore ALL errors of said type.  This will not help me. I want to know when a NullReferenceException occursif I didn't handle it in a try/catch block


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>