TraceDiff:使用跟踪分歧消除意外代码行为
TraceDiff: Debugging Unexpected Code Behavior Using Trace Divergences
摘要:
程序合成的最新进展提供了在大规模编程教室中自动调试学生提交并生成个性化反馈的方法。当自动生成编程作业的反馈时,一个关键的挑战是设计教学上有用的提示,这些提示与教师给出的手动反馈一样有效。通过对132篇网络问答帖中教师暗示行为的分析,我们确立了有效反馈设计应遵循的三条设计原则。基于这些准则,我们开发了一个反馈系统,利用程序合成和可视化技术。我们的系统比较了不正确代码和固定代码的动态代码执行,并强调了错误如何导致行为的差异,以及不正确的代码跟踪偏离预期的解决方案。从我们的研究结果表明,我们的系统使学生能够检测和修复错误,没有被学生使用另一个现有的可视化调试工具。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。