arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.11865cs.PL
收藏

McFly:网络时间旅行的工具

McFly: Time-Travel Debugging for the Web

John Vilk, Emery D. Berger, James Mickens, Mark Marron

摘要:

时间旅行调试器通过允许开发人员在程序执行过程中自由地向前和向后移动,提供了简化调试的承诺。然而,Web应用程序提出了多个挑战,使得时间旅行调试特别困难。Web应用程序的时间旅行调试器必须准确地再现原始执行期间观察到的所有网络交互,异步事件和视觉状态,无论是向前还是向后。这一切都必须在复杂且高度多线程的浏览器运行时环境中完成。同时,为了实用,时间旅行调试器必须保持交互速度。本文介绍了McFly,第一个用于Web应用程序的时间旅行调试器。McFly通过对浏览器内部状态的高级表示进行操作而偏离了以前的方法。这种方法使McFly能够以交互式速度提供精确的时间旅行调试-始终保持JavaScript和视觉状态同步。McFly的架构与浏览器无关,建立在所有主要浏览器支持的Web标准之上。我们已经实现了McFly作为微软Edge Web浏览器的扩展,McFly的核心部分已经集成到微软的时间旅行调试器产品中。

英文摘要:

Time-traveling debuggers offer the promise of simplifying debugging by letting developers freely step forwards and backwards through a program's execution. However, web applications present multiple challenges that make time-travel debugging especially difficult. A time-traveling debugger for web applications must accurately reproduce all network interactions, asynchronous events, and visual states observed during the original execution, both while stepping forwards and backwards. This must all be done in the context of a complex and highly multithreaded browser runtime. At the same time, to be practical, a time-traveling debugger must maintain interactive speeds. This paper presents McFly, the first time-traveling debugger for web applications. McFly departs from previous approaches by operating on a high-level representation of the browser's internal state. This approach lets McFly provide accurate time-travel debugging - maintaining JavaScript and visual state in sync at all times - at interactive speeds. McFly's architecture is browser-agnostic, building on web standards supported by all major browsers. We have implemented McFly as an extension to the Microsoft Edge web browser, and core parts of McFly have been integrated into a time-traveling debugger product from Microsoft.

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

↑