Y9 Programming Page → Step 1. Reading Code → Step 2. Tracing Code → Step 3. Debugging Code → Step 4. Writing Code → Step 5. Assessment
Learning to debug is one of the most important things you can do as a programmer. Code almost never works first time!
Problems can in two main flavours:
syntax errors- you typed something that Python doesn't recognise
logic errors- the code doesn't produce what it was supposed to
Once you have watched the video, click through all the debug exercises listed below. Beware! They get quite difficult towards the end!