gdb

Gdb is a gnu debugger. You will find that if you know gdb intimately, then you will save a tremendous amount of time later during the term.

Use gdb to step through the code as it is executing, and use gdb to look at your data structures. In particular, after you have created a list with several elements in it, follow the elements in the list with gdb.

You can find out more on gdb by:

Finally, there is also a version of gdb that has an X-windows interface, called xxgdb. Chances are, you will want to use that. See the man page (type man xxgdb at the UNIX prompt) for more information.