Visual Basic Concepts

Tips for Debugging

See Also

There are several ways to simplify debugging:

Occasionally you may encounter a bug that’s especially difficult to track down. Don’t panic – here are some things that you can do:

For More Information   Breakpoints are described in "Using a Breakpoint to Selectively Halt Execution" earlier in this chapter. Read more about Watch expressions in "Monitoring Data with Watch Expressions." The Immediate window is discussed in "Testing Data and Procedures with the Immediate Window." See "Verifying Your Code with Assertions" for more about the Assert method of the Debug object.