TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergences
Authors:
- Ryo SuzukiRSRyo Suzuki
- Gustavo SoaresGSGustavo Soares
- Andrew HeadAHAndrew Head
- Elena GlassmanEGElena Glassman
- Ruan ReisRRRuan Reis
- Melina MongioviMMMelina Mongiovi
- Loris D'AntoniLDLoris D'Antoni
- Bjoern HartmannBHBjoern Hartmann
Preprint
Abstract
Recent advances in program synthesis offer means to automatically debug student submissions and generate personalized feedback in massive programming classrooms. When automatically generating feedback for programming assignments, a key challenge is designing pedagogically useful hints that are as effective as the manual feedback given by teachers. Through an analysis of teachers' hint-giving practices in 132 online Q&A posts, we establish three design guidelines that an effective feedback design should follow. Based on these guidelines, we develop a feedback system that leverages both program synthesis and visualization techniques. Our system compares the dynamic code execution of both incorrect and fixed code and highlights how the error leads to a difference in behavior and where the incorrect code trace diverges from the expected solution. Results from our study suggest that our system enables students to detect and fix bugs that are not caught by students using another existing visual debugging tool.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Data-Driven Hint Generation in Vast Solution Spaces: a Self-Improving Python Programming TutorInternational Journal of Artificial Intelligence in Education, 2017
- How Can Automatic Feedback Help Students Construct Automata?ACM Transactions on Computer-Human Interaction, 2015
- A Review of Generic Program Visualization Systems for Introductory Programming EducationACM Transactions on Computing Education, 2013
- Focus on Formative FeedbackReview of Educational Research, 2008
- The Andes Physics Tutoring System: Lessons LearnedInternational Journal of Artificial Intelligence in Education, 2005
- A Meta-Study of Algorithm Visualization EffectivenessJournal of Visual Languages & Computing, 2002