O'Reilly logo

C++ All-in-One For Dummies, 3rd Edition by John Paul Mueller, Jeff Cogswell

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 3

Stopping and Inspecting Your Code

In This Chapter

arrow Setting, enabling, and disabling breakpoints

arrow Temporarily setting or disabling a breakpoint

arrow Inspecting a variable

arrow Watching all the local variables

arrow Watching any variable

Sometimes, things break. But what we’re talking about here is the code. Now this is one of those instances when a word or phrase has lots of different meanings. Programmers talk about breaking the code. This phrase usually means one of two things. It may mean that the programmer made a mistake and the code no longer works. But in this chapter, we’re using a different definition for the term. When you’re debugging an application, you can have the application run until it gets to a certain line in the code. The debugger then stops at that line, and you can look at the values of variables, inspect the code, or even change the variables. When the application stops, that’s called breaking. The reason it stops on that particular line is because you put a breakpoint ...

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