Visual Studio Tips
The images on this page are from Visual Studio 2015.
Use Option Strict On to show Errors while editing
Put the line:
Option Strict On
as the first line of code in your form as shown in the example.
Then Visual Studio will show design time errors to you while editing.
You can also set Option Strict for the Project in the menu item Project -
Properties - Debug tab.
Set the Debugger to Break on Errors
Make sure your project is set to break on errors in debug using the menu
item Debug - Window - Exceptions (or just Debug - Exceptions depending on VS
version) and make sure all items for Common Language Runtime errors is
checked. Otherwise you could be getting an error but Visual Studio is not
Select the menu item Debug - Windows - Exception Settings
Check Common Language Runtime Exceptions (all items).
- Set Break Point
- Single Step Execution
- Examine the Values