Debugging: An Analysis of Bug-Location Strategies
- 1 December 1987
- journal article
- Published by Taylor & Francis in Human–Computer Interaction
- Vol. 3 (4), 351-399
- https://doi.org/10.1207/s15327051hci0304_2
Abstract
This article presents a series of four experiments investigating students' debugging of LISP programs. The experiments involve a population of students who know LISP reasonably well in that their errors are best classified as slips (Brown & Van Lehn, 1980). That is, students are unlikely to repeat the same errors either within their program or across programs (Experiment 1). The students' understanding of LISP is also reflected in their debugging behavior: They can usually fix a bug once they locate it. Students' difficulties are in locating the erroneous line of code. We observe that students use a variety of bug-location strategies during debugging (Experiment 2) and that the choice of strategy differs depending on whether students are debugging their own programs or other students' programs (Experiment 3). In addition, we observe that although the different bug-location strategies affect which lines of a program are searched, once students decide on a line, their ability to judge whether or not the lin...Keywords
This publication has 8 references indexed in Scilit:
- Cognitive objectives in a LOGO debugging curriculum: Instruction, learning, and transferCognitive Psychology, 1988
- Stimulus structures and mental representations in expert comprehension of computer programsCognitive Psychology, 1987
- The perils of averaging data over strategies: An example from children's addition.Journal of Experimental Psychology: General, 1987
- Review and Evaluation of Empirical Research in TroubleshootingHuman Factors: The Journal of the Human Factors and Ergonomics Society, 1985
- Novice LISP Errors: Undetected Losses of Information from Working MemoryHuman–Computer Interaction, 1985
- Problem solving techniques for the design of algorithmsInformation Processing & Management, 1984
- Repair theory: A generative theory of bugs in procedural skillsCognitive Science, 1980
- Mental Procedures in Real-Life Tasks: A Case Study of Electronic Trouble ShootingErgonomics, 1974