arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.14465cs.SE
收藏

NuzzleBug:在 Scratch 中调试基于积木的程序

NuzzleBug: Debugging Block-Based Programs in Scratch

Adina Deiner, Gordon Fraser

AI总结:

本文提出 Scratch 扩展 NuzzleBug,通过断点、单步、反向执行和执行问答支持儿童调试,并经师生评估验证其有效性。

摘要:

尽管专业集成编程环境通过高级调试功能为开发者提供支持,但面向年轻学习者的基于积木的编程环境往往完全不提供调试支持,从而抑制了调试活动,也妨碍了调试教育。在本文中,我们介绍 NuzzleBug,它是流行的基于积木的编程环境 Scratch 的一个扩展,提供了所缺失的调试支持。NuzzleBug 允许通过单步执行和断点等经典调试功能来控制 Scratch 程序的执行,同时它也是一个全知调试器,还支持反向单步执行。为帮助学习者形成指导调试的假设,NuzzleBug 是一个疑问式调试器,能够提出关于执行过程的问题,并给出解释相关行为的答案。为评估 NuzzleBug,我们调查了教师的看法,并研究了其对学习者在调试有效性和效率方面的影响。我们发现,教师认为 NuzzleBug 很有用,儿童能够使用它有效地调试有缺陷的程序。然而,系统化调试需要专门训练;即使 NuzzleBug 能够提供正确答案,学习者仍可能需要进一步帮助才能理解缺陷和必要的修复,因此需要进一步研究改进调试技术及其所提供的信息。

英文摘要:

While professional integrated programming environments support developers with advanced debugging functionality, block-based programming environments for young learners often provide no support for debugging at all, thus inhibiting debugging and preventing debugging education. In this paper we introduce NuzzleBug, an extension of the popular block-based programming environment Scratch that provides the missing debugging support. NuzzleBug allows controlling the executions of Scratch programs with classical debugging functionality such as stepping and breakpoints, and it is an omniscient debugger that also allows reverse stepping. To support learners in deriving hypotheses that guide debugging, NuzzleBug is an interrogative debugger that enables to ask questions about executions and provides answers explaining the behavior in question. In order to evaluate NuzzleBug, we survey the opinions of teachers, and study the effects on learners in terms of debugging effectiveness and efficiency. We find that teachers consider NuzzleBug to be useful, and children can use it to debug faulty programs effectively. However, systematic debugging requires dedicated training, and even when NuzzleBug can provide correct answers learners may require further help to comprehend faults and necessary fixes, thus calling for further research on improving debugging techniques and the information they provide.

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

↑