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 ...

Get C++ All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.