
Laurie’s PhD looked at how to improve the teaching of debugging to secondary students learning a text-based programming language. Students’ debugging behaviours, attitudes, and teachers’ experiences of debugging in the classroom were all studied to inform the development of PRIMMDebug, an approach for teaching the debugging process to school students. The PhD ended with a classroom study of PRIMMDebug, which found a notable contrast between teachers’ and students’ perspectives on reflective debugging.
Laurie submitted his PhD thesis in December 2025, passed his viva with minor corrections in February 2026, and graduated in July 2026. He was the first PhD student to graduate from the research centre.



Laurie’s first research study explored lower secondary school students’ debugging behaviour through an in-depth analysis of 73 students’ attempts at a set of Python debugging exercises. Students’ tried to fix a set of errors using an online code editor, with snapshots of their programs recorded each time they ran them. Analysis of these snapshots showed that students made a wide range of debugging behaviours, including common cycles of ineffective trial and error.
In the same study described above, students also completed a survey about their attitudes and emotions towards debugging. There were a wide range of responses on the survey, indicating a wide range of attitudes. Many of these attitudes were strongly linked. Self-efficacy (the belief that one can successfully perform a task) was linked to many other attitudes and emotions; students who reported lower levels of self-efficacy found debugging less useful and importantly, more frustrating and anxiety-inducing. These results highlight the importance of considering the emotional side of debugging when teaching programming; students are likely to experience many negative feelings, not just one.
Towards the end of 2023, Laurie interviewed 10 KS3 computing teachers to ask about their experiences of teaching and dealing with debugging in the classroom. I also wanted to gather their observations of how students debug.
Qualitative analysis of teachers’ interviews revealed a “hands-up problem”. This is the common tendency of students to raise their hand upon hitting a barrier when problem-solving (i.e., when encountering an error in their programs). When lots of students raise their hands, this can be a difficult problem for teachers to deal with, but there are counters to alleviate its consequences.
PRIMMDebug is a teaching approach for teaching the debugging process to secondary school students. It consists of a process based on PRIMM and an online tool takes students through these steps. The main goal of PRIMMDebug is to teach a reflective approach to debugging by encouraging students to articulate their thoughts throughout the debugging process.
An initial research study into PRIMMDebug was conducted with several secondary school classes. This revealed a notable contrast between teachers’, who appreciated the emphasis on reflection for intentional debugging, and students’ perspectives, who did not appreciate the features of the tool that encouraged this reflection. Laurie is hoping to use these findings to inform the development of similar pedagogical debugging features in more widely used beginner programming environments.
Through his PhD, Laurie also become passionate about conducting research in an open and reproducible manner to help others learn from it more easily. Towards the end of his PhD, Laurie published open-access repositories for each of the studies above on Apollo. These include all of the materials (such as surveys and interview schedules) and analysis code from each of his PhD studies, and research data from the classroom study of PRIMMDebug. Laurie is now learning more about open research through his role as a Data Champion at the University of Cambridge.
Laurie Gale and Sue Sentance. 2026. PRIMMDebug: Teaching Secondary School Students a Reflective Approach to Debugging. Accepted at the 26th Koli Calling International Conference on Computing Education Research (Koli Calling ’26). Preprint available at arXiv:2508.18875. 12 pages.
Laurie Gale and Sue Sentance. 2026. The Hands-Up Problem and How to Deal With It: Secondary School Teachers’ Experiences of Debugging in the Classroom. Informatics in Education 25 (1). 109-136. https://doi.org/10.15388/infedu.2504.011
Laurie Gale and Sue Sentance. 2023. Investigating the Attitudes and Emotions of K-12 Students Towards Debugging. In Proceedings of the 2023 Conference on United Kingdom & Ireland Computing Education Research (UKICER ’23). Association for Computing Machinery, New York, NY, USA, Article 7, 1–7. https://doi.org/10.1145/3610969.3611120
PREPRINTS
Laurie Gale and Sue Sentance. 2026. An Investigation Into Secondary School Students’ Debugging Behaviour in Python. In review in ACM Transactions on Computing Education. Preprint available at arXiv:2508.14833. 32 pages.
Laurie Gale and Sebastian M. Nicholajsen. 2025. Empowering Computing Education Researchers Through LLM-Assisted Content Analysis. arXiv preprint arXiv:2508.18872. 7 pages.