When run (F5 Debug) a Windows Form application I'm working with, there is some exceptions that are not cacthed by CLR debbuger. But the same code in a Console Application every exceptions are cacthed.
Below, I post 2 simple code examples with errors.
Code example #1
Code example #2
Dim var(6) As Integer
var(8) = 33 <------- EXCEPTION
This is important: note that in Console App these exceptions are captured by CLR debuuger, but in Windows Form App NOT !!! That's my problem.
Dim Pila As New Stack(Of Integer)
Pila.Push(CInt("hello")) <------ EXCEPTION
I attached my default Debug menu - Exceptions configuration.