Step 4: Try it in your own program

If you have time remaining, practice debugging a piece of your own code, say from Project 1 or Project 2. Remember to use the -g option when you compile. Try stepping through your code using "next" versus "step" to see the difference.

With some practice, the next time you have a buggy piece of code and a deadline looming, you can pull out gdb and know how to use it.