Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Visual Studio ignore exceptions?

Tags:

I'm using exceptions to validate a control's input in Silverlight 4. When I throw an invalid input exception, VS 2010 displays the popup and stops the program. I ignore this and resume the program, and everything continues fine (since the exception is used to signal a validation error.) Is there a way to mark that one exception as ignored?

I'm following this tutorial.

like image 951
Nick Heiner Avatar asked Sep 10 '10 21:09

Nick Heiner


People also ask

How do I turn off exceptions in Visual Studio?

When the debugger breaks, it shows you where the exception was thrown. You can also add or delete exceptions. With a solution open in Visual Studio, use Debug > Windows > Exception Settings to open the Exception Settings window.

How do I ignore errors in Visual Studio?

Suppress specific warnings for Visual C# or F# Or, select the project node and press Alt+Enter. Choose Build, and go to the Errors and warnings subsection. In the Suppress warnings or Suppress specific warnings box, specify the error codes of the warnings that you want to suppress, separated by semicolons.

Can exceptions be ignored?

It is extremely easy to ignore exceptions, you simply surround your exception throwing code with a try and empty catch block. Exceptions are thrown when exceptional circumstances are experienced so by ignoring exceptions we are opening ourselves up for problems.

What is exception unhandled Visual Studio?

An unhandled exception occurs when the application code does not properly handle exceptions. For example, When you try to open a file on disk, it is a common problem for the file to not exist. The . NET Framework will then throw a FileNotFoundException.


1 Answers

Debug -> Exceptions -> Uncheck

like image 187
Jean-Bernard Pellerin Avatar answered Oct 12 '22 18:10

Jean-Bernard Pellerin