title: Prevent Visual Studio from breaking when throwing exceptions
body: <p>I test the exceptions interception, so, I don't need that Visual Studio breaks on thinkgs like <code>thrown new NullReferenceException("myVar")</code>.</p>
  
  <p>I have the following under Debug=>Exceptions</p>
  
  <p><img src="https://i.stack.imgur.com/ERh6S.jpg" alt="enter image description here"></p>
  
  <p>however, VS breaks on the exceptions. What should I do?</p>
  
  <p><strong>PS.</strong></p>
  
  <p>for the application unhandled exception, I "catch" them using the <code>Application.UnhandledException</code> as in the the following:</p>
  
  <pre><code>''' &lt;summary&gt;Occurs when the application encounters an unhandled exception.&lt;/summary&gt; '
  Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException
    Dim message As String = String.Format("An application UnhandledException were thrown.{1}The application will now terminate.{1}'{0}'{1}{1}StackTrace:{1}{2}", e.Exception.Message, Environment.NewLine, e.Exception.StackTrace)
    MessageBox.Show(message)
  End Sub
  </code></pre>