{"id":2411,"date":"2024-10-28T12:34:54","date_gmt":"2024-10-28T12:34:54","guid":{"rendered":"https:\/\/computingeducationresearch.org\/?p=2411"},"modified":"2024-10-28T12:34:55","modified_gmt":"2024-10-28T12:34:55","slug":"blog-introducing-primmdebug","status":"publish","type":"post","link":"https:\/\/computingeducationresearch.org\/blog-introducing-primmdebug\/","title":{"rendered":"PRIMMDebug: Explore a new way of teaching debugging"},"content":{"rendered":"\n
Debugging\u2014identifying and fixing errors in computing programs\u2014is an essential skill for all programmers, yet it is one of the most challenging aspects to teach. Secondary classrooms can be a tough environment to learn to debug, where there may be lots of students demanding the teacher\u2019s help. This blog introduces PRIMMDebug<\/em><\/strong>, a new teaching process for text-based debugging, which we are currently testing in the classroom. Find out how to get involved in our research below.<\/p>\n\n\n Learning to debug in text-based programming languages can be a challenging experience for students<\/a> for several reasons: <\/p>\n\n\n\n To tackle these challenges, we\u2019ve developed PRIMMDebug<\/em><\/strong>, a process and a tool designed for teaching text-based debugging to secondary school students. It is an adaptation of the PRIMM<\/a> framework that is already very popular for teaching text-based programming. <\/p>\n\n\n\n The PRIMMDebug process starts with a PRIMMDebug challenge<\/em>. This is simply a program containing a common error that students often make at the start of their programming journey. It also includes a description of what the program should<\/em> do.<\/p>\n\n\n To facilitate positive debugging habits, PRIMMDebug<\/em><\/strong> guides the learners through the following steps as they try to find and fix the error(s) in the buggy program.<\/p>\n\n\n\n It\u2019s important that students aren\u2019t just taught a process, but guided through it. One way this is possible is by creating something that enacts the steps of PRIMMDebug<\/em><\/strong>, which is what we\u2019ve done.
<\/figure>\n<\/div>\n\n\nCommon challenges with learning to debug<\/h3>\n\n\n\n
\n
\n
Introducing PRIMMDebug<\/h3>\n\n\n\n

\n
The PRIMMDebug tool<\/h3>\n\n\n\n
The PRIMMDebug tool<\/a> implements the process with some extra features. For example, students cannot edit their programs until they have first hypothesised where they think the error is. The idea of these features is to encourage intentional reflection and changes over the ineffective trial-and-error-type strategies many students resort to. We feel that this kind of tool is missing from secondary computing education.<\/p>\n\n\n\n