Out-Of-Place debugging:一种减少调试干扰的调试体系结构
Out-Of-Place debugging: a debugging architecture to reduce debugging interference
摘要:
上下文最近的研究表明,开发人员将大部分编程时间用于测试,验证和调试软件。随着应用程序变得越来越复杂,开发人员需要更高级的调试支持来简化软件开发过程。查询自70年代以来,引入了许多调试解决方案。其中,在线调试器提供了一个很好的洞察导致错误的条件,允许检查和与程序的变量交互。然而,大多数在线调试解决方案将\textit{debugging interference}引入到程序的执行中,即暂停、延迟和包含副作用的代码的评估。approach.本文研究了一种新的调试技术,称为\outofplace调试。目标是最小化在线调试的调试干扰特性,同时允许在线远程功能。\outofplace调试器将程序执行和应用状态从被调试的应用程序传送到调试器应用程序,两者都在不同的进程中运行。知识一方面,\outofplace调试允许开发人员远程调试应用程序,克服了对运行被调试应用程序的机器进行物理访问的需要。另一方面,调试在远程机器上本地进行,避免了延迟。这使得它适合部署在分布式系统上,并处理并行运行的多个进程的调试。接地。我们为Pharo Smalltalk程序设计语言实现了一个具体的异地调试器。我们表明,我们的方法是实用的,通过执行几个基准,比较我们的方法与经典的远程在线调试器。我们表明,我们的原型调试器优于传统的远程调试器在几种情况下的1000倍。此外,我们表明,我们的调试器的存在不会影响应用程序的整体性能。重要性这项工作将远程调试与本地在线调试器的调试经验相结合。异地调试是第一种可以在调试远程应用程序时最小化调试干扰的在线调试技术。然而,它仍然保留了在线调试的优点(例如,逐步执行)。这使得该技术适用于现代应用程序,这些应用程序对来自传感器,UI,网络等各种来源的数据流越来越并行,分布式和反应性。
英文摘要:
Context. Recent studies show that developers spend most of their programming time testing, verifying and debugging software. As applications become more and more complex, developers demand more advanced debugging support to ease the software development process. Inquiry. Since the 70's many debugging solutions were introduced. Amongst them, online debuggers provide a good insight on the conditions that led to a bug, allowing inspection and interaction with the variables of the program. However, most of the online debugging solutions introduce \textit{debugging interference} to the execution of the program, i.e. pauses, latency, and evaluation of code containing side-effects. Approach. This paper investigates a novel debugging technique called \outofplace debugging. The goal is to minimize the debugging interference characteristic of online debugging while allowing online remote capabilities. An \outofplace debugger transfers the program execution and application state from the debugged application to the debugger application, both running in different processes. Knowledge. On the one hand, \outofplace debugging allows developers to debug applications remotely, overcoming the need of physical access to the machine where the debugged application is running. On the other hand, debugging happens locally on the remote machine avoiding latency. That makes it suitable to be deployed on a distributed system and handle the debugging of several processes running in parallel. Grounding. We implemented a concrete out-of-place debugger for the Pharo Smalltalk programming language. We show that our approach is practical by performing several benchmarks, comparing our approach with a classic remote online debugger. We show that our prototype debugger outperforms by a 1000 times a traditional remote debugger in several scenarios. Moreover, we show that the presence of our debugger does not impact the overall performance of an application. Importance. This work combines remote debugging with the debugging experience of a local online debugger. Out-of-place debugging is the first online debugging technique that can minimize debugging interference while debugging a remote application. Yet, it still keeps the benefits of online debugging ( e.g. step-by-step execution). This makes the technique suitable for modern applications which are increasingly parallel, distributed and reactive to streams of data from various sources like sensors, UI, network, etc.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。