Debugging Scenario
A scenario which illustrates the process of debugging with the Tangible Code tool.
Adding 12 and 5 with the calculator.
The program gives the wrong answer; it must have a bug.
A list of the files of source code used by the program;
something that most current debuggers don't show.
The contents of output.c. The box shows the value of
the variable answer passed into this function; it is wrong.
The programmer enters the correct value for this variable;
a red flag appears to indicate that there is currently an incorrect
value somewhere in the code.
To help track down the root of the problem, the tool can
jump to the source of the value of this variable.
Here's the problem: someone neglected to write the code to
calculate the answer.
The programmer types in the correct code.
And now the calculator gives the right answer. Notice that
the flag has turned green, to indicate that the value of the answer
variable is correct.
« prev
1
2
3
4
5
6
7
8
9
next »