The Steps of Debugging
Home
Information on Debugging
Steps To Debugging
Quiz 1
Quiz 2
Quiz 3
References & Logins
Refer to pages 185-188 and complete the sentences
The First Step
The first step in
is to check that the error is reproducible. Computers are deterministic, which means that they will do exactly the same thing every time if given the same
.
But there is a tiny possiblility that a one-time transient glitch caused the problem. So therefore you must start by trying to
the problem.
The Second Step
The next step is to make sure that problem is
. This is because the computer may perform a sequence of operations after an error, and they must be
first as a focal point of debugging.
The Third Step
The next step is to check all of the obvious error sources. This is done by checking inputs, connections and links. Once they have been checked, you must
the problem by dividing the operation into those parts that are
and those that are not. The number of untested assumptions should be limited. The goal is to
as many possibilities as you can or to focus on the failing part.
The Fourth Step
If a dead end is reached then the debugger must reassess the
gathered. Also they must ask where the wrong assumption or conclusion is being made and therefore go through process step by step again. Finally, there should be comparisons made from
to
about what should be happening and what is actually happening. Debugging requires tough, logical reasoning to figure out what is wrong.