arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.09694cs.SE
收藏

模拟交互调试

Simulated Interactive Debugging

Ruhr University Bochum(波鸿鲁尔大学);Singapore University of Technology and Design(新加坡科技设计大学);Singapore Management University(新加坡管理大学)

Yannic Noller, Erick Chandra, Srinidhi Chandrashekar, Kenny Choo, Cyrille Jegourel, Oka Kurniawan, Christopher M. Poskitt

AI总结:

本文提出模拟交互调试方法,通过交互式指导帮助学生更系统地学习调试技能,提升学习效率和效果。

摘要:

软件调试,即故障定位及其修复,是软件工程中的关键活动。因此,有效且高效的调试是软件工程师必须培养的核心技能之一。然而,调试技术的教学通常非常有限,或仅通过间接方式教授,例如在软件项目中。因此,大多数计算机科学(CS)学生以随意和无结构的方式学习调试。在本工作中,我们提出了名为模拟交互调试的方法,该方法通过交互式引导学生沿着调试过程进行。指导旨在使学生能够修复他们的解决方案并获得适当的学习体验。我们设想,这种指导调试技术可以整合到编程课程中,尽早进入计算机科学教育课程。我们使用传统故障定位技术和大语言模型开发了原型实现。学生可以使用诸如自动设置断点或交互式聊天机器人等特性。我们设计并执行了一个小规模、受控的实验,涉及八名本科计算机科学学生。基于响应,我们得出结论,参与者喜欢系统的指导。他们将自动设置断点评为最有效,随后是交互式调试和聊天,以及断点解释。未来,我们将扩展我们的概念和实现,并进行更深入的用户研究。

英文摘要:

Debugging software, i.e., the localization of faults and their repair, is a key activity in software engineering. Therefore, effective and efficient debugging is one of the core skills a software engineer must develop. However, the teaching of debugging techniques is usually very limited or only taught in indirect ways, e.g., during software projects. As a result, most Computer Science (CS) students learn debugging only in an ad-hoc and unstructured way. In this work, we present our approach called Simulated Interactive Debugging that interactively guides students along the debugging process. The guidance aims to empower the students to repair their solutions and have a proper learning experience. We envision that such guided debugging techniques can be integrated into programming courses early in the CS education curriculum. We developed a prototypical implementation using traditional fault localization techniques and large language models. Students can use features like the automated setting of breakpoints or an interactive chatbot. We designed and executed a small-scale, controlled experiment with eight undergraduate CS students. Based on the responses, we conclude that the participants liked the systematic guidance. They rated the automated setting of breakpoints as most effective, followed by the interactive debugging and chatting, and the breakpoint explanations. In future, we will extend our concept and implementation, and perform more intensive user studies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑