Reusing Bugged Source Code to Support Novice Programmers in Debugging Tasks
Open Access
- 22 November 2019
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computing Education
- Vol. 20 (1) , 1-24
Abstract
Novice programmers often encounter difficulties performing debugging tasks effectively. Even if modern development environments (IDEs) provide high-level support for navigating through code elements and for identifying the right conditions leading to the bug, debugging still requires considerable human effort. Programmers usually have to make hypotheses that are based on both program state evolution and their past debugging experiences. To mitigate this effort and allow novice programmers to gain debugging experience quickly, we propose an approach based on the reuse of existing bugs of open source systems to provide informed guidance from the failure site to the fault position. The goal is to help novices in reasoning on the most promising paths to follow and conditions to define. We implemented this approach as a tool that exploits the knowledge about fault and bug position in the system, as long as any bug of the system is known. The effectiveness of the proposed approach is validated through a quasi-experiment that qualitatively and quantitatively evaluates how the debugging performances of the students change when they are trained using the tool.Keywords
This publication has 32 references indexed in Scilit:
- Describing the What and Why of Students’ Difficulties in Boolean LogicACM Transactions on Computing Education, 2012
- Bringing computational thinking to K-12ACM Inroads, 2011
- Static Dominance InferenceLecture Notes in Computer Science, 2011
- BlueJ Visual Debugger for Learning the Execution of Object-Oriented Programs?ACM Transactions on Computing Education, 2010
- Debugging: finding, fixing and flailing, a multi-institutional study of novice debuggersComputer Science Education, 2008
- Scaffolding and metacognitionInternational Journal of Mathematical Education in Science and Technology, 2006
- Learning to Troubleshoot: A New Theory-Based Design ArchitectureEducational Psychology Review, 2006
- Computational thinkingCommunications of the ACM, 2006
- A framework and methodology for studying the causes of software errors in programming systemsJournal of Visual Languages & Computing, 2005
- A fast algorithm for finding dominators in a flowgraphACM Transactions on Programming Languages and Systems, 1979