Debugging
Laurie Murphy, Gary Lewandowski, Renée A. McCauley et al. · ACM SIGCSE Technical Symposium on Computer Science Education (SIGCSE) · 2008
A qualitative analysis of debugging strategies of novice Java programmers is presented. The study involved 21 CS2 students from seven universities in the U.S. and U.K. Subjects "warmed up" by coding a solution to a typical introductory problem. This was followed by an exercise debugging a syntactically correct version with logic errors. Many novices found and fixed bugs using strategies such as tracing, commenting out code, diagnostic print statements and methodical testing. Some competently used online resources and debuggers. Students also used pattern matching to detect errors in code that "just didn't look right". However, some used few strategies, applied them ineffectively, or engaged in other unproductive behaviors. This led to poor performance, frustration for some, and occasionally the introduction of new bugs. Pedagogical implications and suggestions for future research are discussed.
Cited by 89 works. doi:10.1145/1352135.1352191
Authors
References
- Some psychological evidence on how people debug computer programs
- Expertise in debugging computer programs: A process analysis
- Empirical Studies of Programmers: Second Workshop
- Fragile knowledge and neglected strategies in novice programmers
- An analysis of patterns of debugging among novice computer science students
- Debugging: a review of the literature from an educational perspective
- Debugging: An Analysis of Bug-Location Strategies
- Debugging: finding, fixing and flailing, a multi-institutional study of novice debuggers
- Strategies that students use to trace code
- An analysis of the on-line debugging process