Debugging C++ Video Lecture 5

Debugging C++ Video Lecture 5

I’ve just uploaded the next lecture in debugging C++. This time, I spend some time going over the generic double linked list class because this sample will be the basis for several subsequent lectures.

In this debugging lecture, I present the debugger’s Memory Watch window. It allows you to examine any memory location in both hex and ASCII formats. Sometimes, locating the source of the memory leak can lead directly to the location of the coding error that is creating wild results. This example is one of these. By trying to locating the memory leak, we are led directly to the error.

This sample has been added to the site’s free download section along with the others.

Here’s the fast link to the video:
Debugging Lecture 05

Share Button

The Free Debugging C++ Lectures Are Available

Free Debugging C++ Lectures

By popular demand, I am making available all the original “bugged” programs, along with the fixed versions and the video that illustrates the debugging steps. Download them and see if you can replicate my debugging steps. Also, I’ve included the various documents shown in the videos so you can have those tips as well.

Some of the samples are simple C++ programs, some involve C++ classes, and some are Windows MFC examples. Expect a wide variety of “bugging” examples.

Have fun with these. Here’s the direct link:

Free Debugging C++ lectures and samples used in the demos.

Vic

Share Button

The Third Video in the How to Debug C++ Programs Is On YouTube

How to Debug C++ Programs Lecture 03

The third video in this series is now up on YouYube. In this video, I show you how to use the Call Stack feature of the debugger to help locate the errors in programs. In this session, the Dice class is discussed with two hard crash errors as well as a minor incorrect output. At the end of the video, I’ve added a Take Away list of the key points from these first three beginning lectures.

See how to more effectively and rapidly find the errors in your C++ programs. Watch the video. Subscribe to the channel to get automatic updates when subsequent videos in the series are released.

You can also comment on them and I am open to your suggestions on what other topics you would like to see hints and tip on – just let me know.

Here’s the fast link to the video:
Debugging Lecture 03

Vic

Share Button

The Second Video in the How to Debug C++ Programs Is On YouTube

How to Debug C++ Programs Lecture 02

The second video in this series is now up on YouYube. In this video, I show you how to use the basic features of the debugger to find the errors in programs. Step Into and Step Over are explained along with Continue and how to set and remove breakpoints at key locations. The Watch window, Auto, and Local windows are used effectively to keep track of variable contents.

See how to use these in combination to more effectively and rapidly find the errors in your C++ programs. Watch the video. Subscribe to the channel to get automatic updates when subsequent videos in the series are released.

You can also comment on them and I am open to your suggestions on what other topics you would like to see hints and tip on – just let me know.

Here’s the fast link to the video:
Debugging Lecture 02

Share Button