使用样本变量值扩充Source Code行
Augmenting Source Code Lines with Sample Variable Values
摘要:
源代码本质上是抽象的,这使得它很难理解。诸如调试之类的活动可以揭示具体的运行时细节,包括变量的值。但是,它们要求开发人员显式地请求特定执行时刻的这些数据。我们提出了一个简单的方法,RuntimeSamp,它收集样本变量值在正常执行程序的程序员。然后,这些值以环境方式显示在源代码编辑器中每行的末尾。我们讨论的问题,应该回答这种方法在实践中是可用的,如如何有效地记录的值,什么时候显示它们。我们对这些问题提供了部分答案,并提出了未来的研究方向。
英文摘要:
Source code is inherently abstract, which makes it difficult to understand. Activities such as debugging can reveal concrete runtime details, including the values of variables. However, they require that a developer explicitly requests these data for a specific execution moment. We present a simple approach, RuntimeSamp, which collects sample variable values during normal executions of a program by a programmer. These values are then displayed in an ambient way at the end of each line in the source code editor. We discuss questions which should be answered for this approach to be usable in practice, such as how to efficiently record the values and when to display them. We provide partial answers to these questions and suggest future research directions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。