I'm developing an application inside Visual Studio using C#. This is a simple Console application.
In some places, I wish to swallow exceptions. Thus I use an empty catch
block. It' by design.
When I hit F5, in codes of the try
block of that catch
block, when exceptions raise Visual Studio breaks on them.
This behavior is very annoying and reduces our debugging speed. I want those exceptions to not break at all.
How can I do that?
I searched the Options menu and I found nothing.
CodePudding user response:
Go to Debug
> Windows
> Exception Settings
A new window will open
Uncheck Common Language Runtime Exceptions
CodePudding user response:
Maybe start the programme without debugging and if your Try block is in a Loop then you should write a continue in the catch block