About this Course
This course is intended for serious computer hobbyists, IT
students, and IT professionals. You need Windows and Visual C++ installed.
The free online textbook for this course is Visual C++
6 Unleashed . Read the Introduction
to the book.
Indicates links that take you away from the Free-Ed.Net site. Use the links on these
offsite pages carefully, and use the Back function on your browser to return to the
Debugging and Profiling Strategies
In this lesson, you will look at debugging and
profiling strategies. Debugging C++ applications can be a very involved process and much
more complicated than fixing an incorrect variable assignment.
C++ provides powerful tools to assist in detecting,
reporting, and correcting errors.
- Explore the techniques for debugging an MFC application.
- Check out the TRACER utility and touch base with the older
error-checking toolsthe MFC macros.
- Look at using the DevStudio Integrated Development
Environment (IDE) debugger.
- Explore some of the IDE features, such as stepping through
code while the program is running, one line at a time.
- See how to set IDE breakpoints and step into and over
- Learn to use the various view windows, to view variable
contents, and to change their values on-the-fly to check for results.
- See how to use the Source Browser tool to inspect code in
- Explore the nature of these logs, how to prepare your
machine to generate the logs, and what information the logs provide.
- Take a look at the concept of attaching to running processes
for debug purposes.
- Examine profiling and using the profiling tools for code
- Learn about PREP, PROFILE, and PLIST.
- See how to run the profiling application from the IDE, as
well as from the more advantageous command line.
Read the following sections from your free online textbook:
Support for Debugging
for Debugging Your MFC Application
the DevStudio IDE Debugger
the OLE-COM Object Viewer
the Process Viewer
- Use this search box to refine and expand your understanding
of new terms and concepts in the reading assignments.
Read the Summary
of the lesson.