Introduction
As you develop software programs, there are going to be times that your program behaves in an unintended way. For instance, the program could be throwing an error and might crash. A crash is when our code stops functioning midway and then exits abruptly. Perhaps, the program has given us unexpected results. For example, we request a video streaming service for the movie Rocky 1, but instead get Creed 1! Or, you deposited a check into your bank account but, instead of being credited, the bank software debited your account. These examples of software programs behaving in an unintended way are called bugs. Sometimes, "bug" and "error" are used interchangeably. In Chapter 6, Errors, in the What Are Errors? section, we discussed how there are three different types of errors or bugs: syntax errors, runtime errors, and logic errors. We also examined examples and saw the difficulty of discovering the location of each type of error.
The process of determining...