Zen and the Art of Software Debugging
February 02, 2017 | BY: Tammy CarterDownload PDF
The Age Old Debate: Art versus Science
There has always been a debate if software debugging is an art or a science.
Some engineers take the romantic approach to software integration: they write the code and debug by inspiration and intuition. Living in the moment, they forego rational analysis or repeatable processes. When confronted with an issue, they follow gut instincts and change their code often without even making a backup in case the assumption was wrong. They doggedly stack patches on top of patches, or introduce more problems when trying to back out the changes at a later date.
On the other side, some software developers follow the traditional approach: they try to diagnose and solve the problem by rigidly following a step-by-step debugging methodology. They become frustrated when the real world does not function the same as the world described in the programming books. Because of their dedication to ritual, technology transforms into magic and it becomes unpredictable and time consuming. They try the same techniques over and over again vainly hoping for a different result.
Perhaps the best programmer is the one that embraces debugging as both an art and a science. When debugging, bursts of creativity and intuition must work in harmony with rational problem-solving skills along with the best available tools.
Figure 1: Three categories of software bugs
This White Paper provides an overview of software debugging download this white paper to learn more about:
- Approaches to debugging
- Three categories of software bugs
- Tracepoints, sparklines, and watchpoints
- Memory overwrites