Debugging Techniques

Once we have written and tested a program, it is done, right? Not quite. During testing of programs, strange behavior often develops. Even the authoring phase can produce unexpected results. We now confront the debugging of programs written in the GNU environment. We will also discuss one of the Microsoft tools on Windows. Our focus is on the GNU tools because they are available for both Windows and Linux and provide good coverage for debugging applications.

Debugging programs can be an art—especially if the program is not well written. It is an excellent goal to eliminate the debugging step of program development entirely. I have found the following guidelines to be quite helpful in reducing or eliminating the debugging ...

Get Linux® and Windows® Interoperability Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.