Algorithms
Debugging: finding the mistake
Almost every program has a mistake at first. Debugging means calmly looking for where it goes wrong and fixing that one line.
Why
Your robot was supposed to reach the flag, but it bumps into a wall. Does that mean your whole program is wrong?
Usually not. Often there is just one line that has to be different: a turn to the left that should have been to the right, a loop that runs one time too many.
Such a mistake is called a bug. Every programmer makes bugs, even the best. The difference is that you learn to find them calmly.
Opening Kaft Plus…
Kaft Plus
The rest of “Debugging: finding the mistake” is in Kaft Plus
The learning path and the first 3 topics of Lus are free. Kaft Plus opens every topic and exercise.
Open with Kaft Plus
Already have Kaft Plus? The same button signs you in and brings you straight back.