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

Sindarin:用于Pharo绘图仪的多功能脚本API

Sindarin: A Versatile Scripting API for the Pharo Debugger

Thomas Dupriez, Guillermo Polito, Steven Costiou, Vincent Aranega, Stéphane Ducasse

摘要:

调试是软件维护中最重要和最耗时的活动之一,然而主流的调试器并不能很好地适应多种调试场景。这导致了新技术的研究,涵盖了复杂错误的特定家庭。值得注意的是,最近的研究建议为开发人员提供脚本DSL,基于插件和可塑造的调试器。然而,这些解决方案是针对特定用例定制的,或者对于一次性使用场景来说成本太高。在本文中,我们认为,在主流调试器中公开调试脚本接口有助于解决许多具有挑战性的调试方案。为此,我们提出了Sindarin,一个脚本API,简化了开发人员在调试会话期间追求的不同策略的表达和自动化。Sindarin提供了一个类似GDB的API,增加了AST字节码源代码映射和以对象为中心的功能。为了证明Sindarin的多功能性,我们从文献中重现了几个先进的断点和非平凡的调试机制。

英文摘要:

Debugging is one of the most important and time consuming activities in software maintenance, yet mainstream debuggers are not well-adapted to several debugging scenarios. This has led to the research of new techniques covering specific families of complex bugs. Notably, recent research proposes to empower developers with scripting DSLs, plugin-based and moldable debuggers. However, these solutions are tailored to specific use-cases, or too costly for one-time-use scenarios. In this paper we argue that exposing a debugging scripting interface in mainstream debuggers helps in solving many challenging debugging scenarios. For this purpose, we present Sindarin, a scripting API that eases the expression and automation of different strategies developers pursue during their debugging sessions. Sindarin provides a GDB-like API, augmented with AST-bytecode-source code mappings and object-centric capabilities. To demonstrate the versatility of Sindarin, we reproduce several advanced breakpoints and non-trivial debugging mechanisms from the literature.

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

↑