GEOG 490/590
GIS Programming
Exercise 3: VB .NET Debugging

In your readings for this week you've learned about the three different kinds of errors found in a typical computer program. They are compilation errors, run-time errors, and logic errors. Don't despair, the Visual Basic Express editor can help you find and resolve these errors. In this exercise you will practice finding and fixing errors.

Do the Try it! on the VB Online help for the following topics (use the hyperlinks or these topics as the keywords when searching the VB 2008 Express MSDN online help):

  1. Finding and getting rid of compiler errors
  2. It Doesn't Work! Finding and Eliminating Run-Time Errors
  3. What? It Wasn't Supposed To Do That! Finding Logic Errors

Note that the instructions recommend creating a new project for each Try It! exercise. This isn't necessary as the exercises are fairly simple and it is faster to create and re-use a single project/form. If you have extra time, try adding some breakpoints to Lab 1.