| Visual Basic 2008 » Chapter 12 |
Debugging and Error HandlingNo one writes perfect code. You're most certainly familiar with those problems that prevent code from executing properly they're called bugs. Because you're new to Visual Basic, your code will probably contain a fair number of bugs. As you gain proficiency, the number of bugs in your code will decrease, but they will never disappear entirely. This tutorial can't teach you how to debug every possible build or runtime error you might encounter. In this chapter you will learn the basic skills necessary to trace and correct most bugs in your code.
Chapter 12.1: Creating a Debugging Example Before proceeding, create a new Windows Application project named Debugging Example. Read more...
Chapter 12.2: Adding Comments to Your Code A code comment is simply a line of text that Visual Basic knows isn't actual code and therefore ignores. Read more...
Chapter 12.3: Basic Types of Errors Two types of errors can occur in code: build errors and runtime errors. Read more...
Chapter 12.4: Using Visual Basic's Debugging Tools In this section, you'll learn how to use break points and the Immediate window two tools that form the foundation of any debugging arsenal. Read more...
It's useful to have Visual Basic halt execution when an exception occurs. Read more... |