O'Reilly logo

C++ All-In-One For Dummies®, 2nd Edition by Jeff Cogswell, John Paul Mueller

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

Chapter 4. Using the Visual C++ 2008 Debugger

In This Chapter

  • Understanding the error application

  • Getting started with debugging

  • Using the debugging windows

As with any good programming environment, Visual C++ offers a debugger that helps you locate and squash bugs in your application. In fact, the Visual C++ debugger is one of the highlights of Visual Studio. You get a world-class debugger that can help you locate nearly any type of bug in your application and with a minimum of effort.

The Visual C++ debugger works the same as most other debuggers. You can single-step through the application or use breakpoints to stop at locations you think might contain errors. Visual C++ provides a number of debugging windows that show the application state and provide a means for watching variables as the application executes.

The thing that sets this debugger apart is that everything is well integrated so that you don't have to work quite so hard to figure things out. In addition, Visual C++ provides a number of additional windows that you won't find with other debuggers. For example, you can create more than one Watch window.

In this chapter, you discover the Visual C++ debugger. The sections split debugging into running the application and working with the debugging windows.

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