Home Contents Search GhostDepot Vb.Net Depot





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 showing it.

Select the menu item Debug - Windows - Exception Settings


Check Common Language Runtime Exceptions (all items).



To do:

  • Set Break Point
  • Single Step Execution
  • Examine the Values





Copyright 2000 - 2017 Sandia Software