Reversible debugging in a runtime environment

US11113182B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11113182-B2
Application numberUS-201916372210-A
CountryUS
Kind codeB2
Filing dateApr 1, 2019
Priority dateApr 1, 2019
Publication dateSep 7, 2021
Grant dateSep 7, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Performing reverse execution debugging of an application. The method includes identifying a snapshot of application state for an application in an application framework. The method further includes emulating execution of the application, using bytecode, in a forward direction from the snapshot to an end point, causing generation of historical execution state at various points along the emulation of the application. The method further includes collecting the historical execution state. The method further includes using the collected historical execution state, emulating reverse execution of the application by substituting collected historical execution state, when needed, to restore previous state needed as a result of emulation of reverse execution of the application.

First claim

Opening claim text (preview).

What is claimed is: 1. A method of performing reverse execution debugging of an application, the method comprising: identifying a snapshot of application state for the application; emulating execution of the application on a debugger virtual machine that emulates functionality of a runtime virtual machine, wherein the debugger virtual machines uses intermediate level code to emulate execution of the application on the runtime virtual machine such that at least a portion of the intermediate level code is not converted to native machine instructions and executed on the runtime virtual machine, in a forward direction from the snapshot to an end point, causing generation of emulated historical execution state at various points along the emulation of the application; collecting the emulated historical execution state; and using the collected emulated historical execution state, emulating reverse execution of the application by substituting the collected emulated historical execution state, when needed, to restore previous state needed as a result of emulation of reverse execution of the application. 2. The method of claim 1 , wherein collecting the emulated historical execution state comprises collecting the emulated historical execution state into a stack such that the previous state is restored by popping elements of the emulated historical execution state from the stack. 3. The method of claim 2 , wherein there is a different stack for each thread being emulated. 4. The method of claim 2 , wherein an element is popped from the stack when emulated reverse execution identifies an instruction that changes application state to restore the application state to state that was valid immediately prior to the identified instruction. 5. The method of claim 1 , wherein collecting the emulated historical execution state comprises collecting the emulated historical execution state by iteratively emulating execution from the snapshot toward the endpoint, where each iteration of emulated execution emulates execution of progressively smaller portions of the application, such that reverse execution of the application is emulated by surfacing state as a result of each iteration. 6. The method of claim 5 , wherein each iteration executes one less bytecode instruction than the previous iteration. 7. The method of claim 1 , further comprising collecting runtime virtual machine external state for the application by executing machine code for the application in conjunction with emulating execution of the application. 8. A computer system comprising: one or more processors; and one or more computer-readable media having stored thereon instructions that are executable by the one or more processors to configure the computer system to perform reverse execution debugging of an application, including instructions that are executable to configure the computer system to perform at least the following: identify a snapshot of application state for the application; emulate execution of the application on an debugger virtual machine that emulates functionality of a runtime virtual machine, wherein the debugger virtual machines uses intermediate level code to emulate execution of the application on the runtime virtual machine such that at least a portion of the intermediate level code is not converted to native machine instructions and executed on the runtime virtual machine, in a forward direction from the snapshot to an end point, causing generation of emulated historical execution state at various points along the emulation of the application; collect the emulated historical execution state; and use the collected emulated historical execution state, emulating reverse execution of the application by substituting the collected emulated historical execution state, when needed, to restore previous state needed as a result of emulation of reverse execution of the application. 9. The computer system of claim 8 , wherein collecting the emulated historical execution state comprises collecting the emulated historical execution state into a stack such that the previous state can be restored by popping elements of the historical execution state from the stack. 10. The computer system of claim 9 , wherein there is a different stack for each thread being emulated. 11. The computer system of claim 9 , wherein an element is popped from the stack when emulated reverse execution identifies an instruction that changes application state. 12. The computer system of claim 8 , wherein collecting the emulated historical execution state comprises collecting the emulated historical execution state by iteratively emulating execution from the snapshot toward the endpoint, where each iteration of emulated execution emulates execution of progressively smaller portions of the application, such that reverse execution of the application is emulated by surfacing state as a result of each iteration. 13. The computer system of claim 12 , wherein each iteration executes one less bytecode instruction than the previous iteration. 14. The computer system of claim 8 , wherein one or more computer-readable media further have stored thereon instructions that are executable by the one or more processors to configure the computer system to collect non-deterministic state for the application by executing lower level application code for the application in conjunction with emulating execution of the application. 15. A computer physical readable media having stored thereon instructions that are executable by one or more processors to configure a computer system to perform reverse execution debugging of an application, including instructions that are executable to configure the computer system to perform at least the following: identify a snapshot of application state for an application in an application framework; emulate execution of the application on a debugger virtual machine that emulates functionality of a runtime virtual machine, using bytecode, to emulate execution of the application on the runtime virtual machine such that at least a portion of the intermediate level code is not converted to native machine instructions and executed on the runtime virtual machine in a forward direction from the snapshot to an end point, causing generation of emulated historical execution state at various points along the emulation of the application; collect the emulated historical execution state; and use the collected emulated historical execution state, emulating reverse execution of the application by substituting the collected emulated historical execution state, when needed, to restore previous state needed as a result of emulation of reverse execution of the application. 16. The computer readable storage media of claim 15 , wherein collecting the emulated historical execution state comprises collecting the emulated historical execution state into a stack such that the previous state can be restored by popping elements of the emulated historical execution state from the stack. 17. The computer readable storage media of claim 16 , wherein there is a different stack for each thread being emulated. 18. The computer readable storage media of claim 16 , wherein an element is popped from the stack when emulated reverse execution identifies an instruction that changes application state. 19. The computer readable storage media of claim 15 , wherein collecting the historical execution state comprises collecting the emulated historical execution state by iteratively emulating execution from the snapshot toward the endpoint, whe

Assignees

Inventors

Classifications

  • Environments for analysis, debugging or testing of software · CPC title

  • Hypervisor-specific management and integration aspects · CPC title

  • Starting, stopping, suspending or resuming virtual machine instances · CPC title

  • by tracing the execution of the program · CPC title

  • Monitoring or debugging support · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11113182B2 cover?
Performing reverse execution debugging of an application. The method includes identifying a snapshot of application state for an application in an application framework. The method further includes emulating execution of the application, using bytecode, in a forward direction from the snapshot to an end point, causing generation of historical execution state at various points along the emulatio…
Who is the assignee on this patent?
Microsoft Technology Licensing Llc
What technology area does this patent fall under?
Primary CPC classification G06F11/3698. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 07 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 7 related publications on this page (citations in our corpus or others sharing the same primary CPC).