Probé la interceptación de excepciones, por lo tanto, no necesito que Visual Studio se interrumpa en thinkgs como thrown new NullReferenceException("myVar")
.Evitar que Visual Studio se rompa al lanzar excepciones
que tienen la siguiente bajo debug => Excepciones
sin embargo, VS rompe en las excepciones. ¿Que debería hacer?
PS.
para la aplicación excepción no controlada, que "atrapar" usando el Application.UnhandledException
como en el siguiente:
''' <summary>Occurs when the application encounters an unhandled exception.</summary> '
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
intente atraparlo si es posible? – lxcid
Eso solo muestra que VS no infringe todas las excepciones cuando se lanzan. Debería profundizar en el nodo de Excepciones de CLR para ver si se verifican las excepciones individuales. – CodeNaked
@CodeNaked: verificado: System.NullReferenceException no está marcado. – serhio