In this chapter, we realized that we, as humans, make mistakes, but we can go back and fix them as well.
A software bug is an error in an application that can have several causes. Depending on what is behind the bug, we must approach it differently when trying to fix it.
In some cases, as with syntax errors, we will be told what the cause of the bug is right away, and even be directed to the correct location in the code.
Other bugs will be harder to find. When the programming language syntax is correct, but the logic is not, the program will behave in unexpected ways. To be able to find these bugs, we can use a tool called a debugger. It helps us track down the bugs by letting us pause the execution of the program and see all the values the variables have; it will even let us step through the execution one line at a time.
An exceptional event is when things that should not happen still happen. In programming, they are referred to as exceptions. When they happen...