Debugging and Testing
Testing and debugging play a crucial part in the pipeline of the software development process. While debugging fixes problems, testing assists in problem detection. But many possible flaws can be avoided if we adhere to specific guidelines throughout the implementation stage. In addition, since testing is expensive, it would be beneficial if we could use tools to automatically examine software before human testing became necessary. Furthermore, it’s crucial to consider when, how, and which software tests we should conduct.
In this chapter, we will cover the following topics:
- Understanding the root cause of an issue
- Debugging programs
- Static and dynamic analysis
- Testing, test-driven development (TDD), and behavior-driven development (BDD)
This chapter describes the analysis of a software defect, the use of the GNU Debugger (GDB) tool to debug a program, and the use of tools to automatically analyze software. The concepts of...