Skip to main content
re-worded for clarity
Source Link
Dan Ling
  • 3k
  • 2
  • 29
  • 43

Most likely this is not the actual behavior of your application - rather, it is that Visual Studio is set to always break when there is an unhandled ArgumentOutOfRangeException.

You can verify this by running the programpressing "Start without debuggingdebugging".

If you want to change the settings, browse in Visual Studio to the menu to Debug -> Exceptions and you should see the following. Then uncheck "User-unhandled."

Personally, I recommend leaving the setting the way it is in most cases. It really helps when hunting down unhandled exceptions.

Visual Studio Debug Exceptions

Most likely this is not the actual behavior of your application - rather, it is that Visual Studio is set to always break when there is an unhandled ArgumentOutOfRangeException.

You can verify this by running the program without debugging.

If you want to change the settings, browse in Visual Studio to the menu to Debug -> Exceptions and you should see the following. Then uncheck "User-unhandled."

Personally, I recommend leaving the setting the way it is in most cases. It really helps when hunting down unhandled exceptions.

Visual Studio Debug Exceptions

Most likely this is not the actual behavior of your application - rather, Visual Studio is set to always break when there is an unhandled ArgumentOutOfRangeException.

You can verify this by pressing "Start without debugging".

If you want to change the settings, browse to the menu to Debug -> Exceptions and you should see the following. Then uncheck "User-unhandled."

Personally, I recommend leaving the setting the way it is in most cases. It really helps when hunting down unhandled exceptions.

Visual Studio Debug Exceptions

Source Link
Dan Ling
  • 3k
  • 2
  • 29
  • 43

Most likely this is not the actual behavior of your application - rather, it is that Visual Studio is set to always break when there is an unhandled ArgumentOutOfRangeException.

You can verify this by running the program without debugging.

If you want to change the settings, browse in Visual Studio to the menu to Debug -> Exceptions and you should see the following. Then uncheck "User-unhandled."

Personally, I recommend leaving the setting the way it is in most cases. It really helps when hunting down unhandled exceptions.

Visual Studio Debug Exceptions