O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to Debugging

As we mentioned earlier, logic errors are problems with your program’s logic. They are often hard to track because the program doesn’t stop working, it just produces incorrect results. To help track down these bugs in your program, Visual Basic provides several tools:

  • Breakpoints allow you to have VB stop on a certain line of code. You can then trace the code forward from the breakpoint a line at a time.

  • The Immediate window provides a way to execute statements (such as changing a variable’s value or calling methods) while your program is in debug mode.

  • The Output window provides a way to dump debug information to the screen, such as variable values.

  • Watches provide a way to keep track of the values of objects or variables ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required