skip to Main Content

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.

2

Answers


  1. Go to Debug > Windows > Exception Settings

    A new window will open

    enter image description here

    Uncheck Common Language Runtime Exceptions

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search