Fundamentals of

Totally free education on the Internet

About · FAQ ·Tell a Friend · Comments  · Course Home Page  ·  IT Learning Center

About this Course

coverIT05.jpg (2354 bytes)

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.

offiste01.jpg (430 bytes) 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 tools—the 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:

offiste01.jpg (430 bytes) MFC Support for Debugging
offiste01.jpg (430 bytes) Techniques for Debugging Your MFC Application
offiste01.jpg (430 bytes) Using the DevStudio IDE Debugger
offiste01.jpg (430 bytes) Using Spy++
offiste01.jpg (430 bytes) Using the OLE-COM Object Viewer
offiste01.jpg (430 bytes) Using the Process Viewer
offiste01.jpg (430 bytes) Performing Remote Debugging
offiste01.jpg (430 bytes) Troubleshooting
offiste01.jpg (430 bytes) Profiling Your Application

Learning Activities

  1. Use this search box to refine and expand your understanding of new terms and concepts in the reading assignments.

Custom Search
  1. offiste01.jpg (430 bytes) Read the Summary of the lesson.

Web design and curriculum: David L. Heiserman

Copyright © 2005 SweetHaven Publishing Services
All Rights Reserved