TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergences

Ryo Suzuki, Gustavo Soares, Andrew Head, Elena Glassman, Ruan Reis +3 more
8/12/2017
cs.HCcs.CYcs.PL

Official code: ryosuzuki/trace-diff (12 stars, JavaScript, MIT, last commit 2017-09-02).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[VL/HCC 2017] TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergences

122JavaScript, PythonApr 3, 20179 years agoMIT

Similar Papers

Cite this paper

@article{suzuki2017tracediff,
  title  = {TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergences},
  author = {Ryo Suzuki and Gustavo Soares and Andrew Head and Elena Glassman and Ruan Reis and Melina Mongiovi and Loris D'Antoni and Bjoern Hartmann},
  year   = {2017},
  eprint = {1708.03786},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1708.03786}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1708.03786.svg)](https://codeofpaper.com/paper/1708.03786)

Discussion