Join Peggy Fisher for an in-depth discussion in this video Using the debugger, part of Learning C++.
…So far, our programs have been very simple,…so it's been real easy to find errors.…But as we start to make more complex programs,…it's important to know how to use a debugger.…Most IDEs, don't forget that's Integrated…Development Environments, have built-in debugging tools.…The advantage of using this debugging tool is it allows us to control…each step in the program and we can watch the variables as they change.…Let's start by setting a breakpoint in our last program, datatypes.cpp.…
It is helpful to enable the line numbering feature.…If you don't see line numbers, go to Window > Preferences…> General > Editors…> Text Editors and you'll see Show Line Numbers.…By default, this is not checked, so click on…Check line numbers and then click Apply, then click OK.…We can add breakpoints in two ways.…
A breakpoint tells the computer when we want to stop and evaluate the variables.…We can add a breakpoint in two ways.…One is we can right-click on the far left…in the editing window next to the line number.…So let's go ahead and right before line…
- Downloading and exploring the C++ IDE
- Working with loops
- Using predefined functions
- Creating custom functions
- Creating and instantiating classes
- Working with external files
Skill Level Beginner
Q: How do I upgrade the C++ compiler on Mac OS X and Linux?
A: Refer to C/C++ Essential Training for a detailed look at installing or upgrading the C++ compiler on various platforms.
Q: The link to download the Eclipse IDE in the "Download a C++ IDE" movie doesn't work. Where can I find the IDE?
A: Short URLs are case sensitive and need to be typed in exactly as they appear. Type in or simply click http://goo.gl/CzckWp to visit the Eclipse IDE for C/C++ Developers page.
1. Getting Started
2. C++ Basics
3. Flow of Control
4. Classes and Objects
5. Data Structures
6. File Manipulation
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.