O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

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

Debugging

Some of the most exciting features of any IDE are the debugging features. To take advantage of these features, you must make sure that you built your executable using a Debug configuration. There are two ways to enter the debugger:

  • Just-in-Time Debugging: You run as normal, and if an exception occurs, you will be allowed to enter the debugger. The program has crashed, so you will not be able to run any further. But you will be able to see the value of variables, and you will see the point at which the program failed.

  • Standard Debugging: You start the program under the debugger. You may set breakpoints, single step, and so on.

To experiment with the debugger, add the following two lines to your program after the calculation of gigabytes: ...

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