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
assigments.
|
Lesson 15.
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.
You will:
- 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
instructions.
- 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
great detail.
- 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
analysis.
- 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.
Reading Assignments
Read the following sections from your free online textbook:
MFC
Support for Debugging
Techniques
for Debugging Your MFC Application
Using
the DevStudio IDE Debugger
Using
Spy++
Using
the OLE-COM Object Viewer
Using
the Process Viewer
Performing
Remote Debugging
Troubleshooting
Profiling
Your Application
-
Learning Activities
- 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.
|
|