I am using vb.net 2010 version. Lately, it is very strange. Everything I will debug my program, it doesn't pop up or show me any error message. I think I might have change some settings that led to this kind of problem.
Here is my simple code below:
Private Sub PhysicalInventoryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PhysicalInventoryToolStripMenuItem.Click
frmPhysicalInventory.MdiParent = Me
frmPhysicalInventory.Show()
End Sub
Private Sub frmPhysicalInventory_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt = New DataTable()
dt.columns.add(New DataColumn("qty_big", Type.GetType("System.Int33")))
End Sub
Note in the code, it should encounter a runtime at gettype, the data type should be System.Int32, not Int33. The problem is vb.net does not tell me this error, it will just go out of that line with error and go back to frmPhysicalInventory.Show() and continue execute whatever line is left.
How can I set vb.net to show me runtime errors during debugging? Any help will be greatly appreciated. I am having this problem for several days now.