An Investigation Into Secondary School Students' Debugging Behaviour in Python
Laurie Gale, Sue Sentance

TL;DR
This study examines how 12-14-year-old students debug Python code, revealing common ineffective strategies and barriers, and suggests teaching systematic debugging and improving programming environments.
Contribution
It provides a detailed analysis of secondary students' debugging behaviors in Python, identifying key barriers and proposing educational and tool-based improvements.
Findings
Most students resolved some errors but often used ineffective strategies.
Students frequently added errors, reverted fixes, and repeated runs without reflection.
Four main barriers to effective debugging were identified: fragile knowledge, lack of systematicity, syntax issues, and emotional factors.
Abstract
Background and context: Debugging is a significant and often frustrating challenge for beginner programmers. Understanding students' debugging behaviours and strategies can help to identify common difficulties and inform approaches for alleviating these. Currently, there are limited studies of school students' debugging behaviour in a text-based programming language, a medium through which millions are learning to program. Objectives: In this paper, we investigate the debugging behaviour of 12-14-year-old students learning Python through a lesson-long classroom study. Method: We collected program snapshots from 73 students' attempts at a set of Python debugging exercises in an online code editor. Through qualitative content analysis of these snapshots, we developed a granular categorisation of the changes students made when debugging. Findings: While most students were able to resolve…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
