Time travel debugging
Time travel debugging or time traveling debugging is the process of stepping back in time through source code to understand what is happening during execution of a computer program.[1] Typically, debugging and debuggers, tools that assist a user with the process of debugging, allow users to pause the execution of running software and inspect the current state of the program.[2] Users can then step forward in time, stepping into or over statements and proceeding in a forward direction.[3] Interactive debuggers include the ability to modify code and step forward based on updated information.[4] Reverse debugging tools allow users to step backwards in time through the steps that resulted in reaching a particular point in the program. Time traveling debuggers provide these features and also allow users to interact with the program, changing the history if desired, and watch how the program responds.[5]
Characteristics supporting bi-directional travel
[edit ]There are several characteristics that support the ability to move backwards as well as forwards in time.
- Selecting a purely functional programming language helps due to the self-contained nature of pure functions. Pure functions have no side effects and depend only on the information explicitly provided to the function, providing a repeatable, reliable, replayable path through the code.
- Languages and debuggers that enable hot swapping, the ability to modify code as the code is running, provide some of the requirements necessary to rewind, and potentially rewrite execution.[6] [7]
- Tools based on the GNU debugger (GDB), available for compatible languages such as C, C++, Go, and Fortran are capable of reverse debugging, but the effort significantly slows interaction.[8]
- Programming languages intended for reversible computing inherently support stepping a program backwards via uncomputation if garbage bits are retained. This may require instruction set support.
Time traveling debuggers
[edit ]Examples of debuggers with the ability to step backwards:
Language | Debuggers |
---|---|
C++ | rr for x86 Linux, Undo UDB for Linux [9] |
R | provDebugR[10] |
Python | PyTrace[11] |
JavaScript | Wallaby.js,[12] Meiosis Tracer[13] |
C# | RevDeBug |
Java | RevDeBug for C# and Java,[14] WhyLine for Java,[15] Undo UDB |
Elm | Elm Debugger, Elm Reactor[16] |
OCaml | ocamldebug |
Go | Undo UDB for Linux [17] |
Rust | Undo UDB for Linux [18] |
Windows Native | Microsoft Time Travel Debugging (TTD) Tool[19] for native Windows software (x86, x64, ARM, ARM64[20] ),
eShard esReverse Full System Time Travel Analysis for Windows[21] |
Linux Native | eShard esReverse Full System Time Travel Analysis for Linux[22] |
Android | eShard esReverse Full System Time Travel Analysis for Android[23] |
See also
[edit ]References
[edit ]- ^ "Time Travel Debugging in WinDbg Preview!". Debugging Tools for Windows. Retrieved 2018年05月08日.
- ^ Telles, Matthew; Hsieh, Yuan (2001年04月01日). The Science of Debugging. Coriolis Group Books. ISBN 9781576109175.
- ^ "Reverse debugging, time travel debugging". undo.io. 9 January 2013. Retrieved 2018年05月08日.
- ^ "Interactive Debugging With Node.js - DZone Web Dev". dzone.com. Retrieved 2018年05月08日.
- ^ "Elm's Time Travelling Debugger". debug.elm-lang.org. Retrieved 2018年05月08日.
- ^ "interactive programming". elm-lang.org. Retrieved 2018年05月08日.
- ^ "Hot reloading and time travel debugging: what are they?". Code Cartoons. 2015年10月21日. Retrieved 2018年05月08日.
- ^ "6 Things You Should Know About Time Travel Debugging". undo.io. 3 January 2015. Retrieved 2018年05月08日.
- ^ "UDB - Time Travel Debugger for C/C++".
- ^ "ProvTools/provDebugR". github.com. 2018年07月31日. Retrieved 2018年07月31日.
- ^ "PyTrace Time Travel Debugger for Python".
- ^ "Wallaby.js Introduction: Time Travel Debugger". wallabyjs.com. Retrieved 2020年02月27日.
- ^ Donut, Fox (2018年04月29日). "You Don't Need Redux, MobX, RxJS, Cerebral". Fox Donut. Retrieved 2018年05月24日.
- ^ "About RevDeBug". revdebug.com. Retrieved 2020年03月28日.
- ^ "Whyline for Java". cs.cmu.edu. Retrieved 2021年01月21日.
- ^ "time travel made easy". elm-lang.org. Retrieved 2018年05月08日.
- ^ "Greg Law on Debugging, Record & Replay of Data, and Hyper-Observability".
- ^ "Greg Law on Debugging, Record & Replay of Data, and Hyper-Observability".
- ^ DOMARS. "Time Travel Debugging - Overview". docs.microsoft.com. Retrieved 2018年05月08日.
- ^ "Get WinDbg Preview". Microsoft .
- ^ "Full System Time Travel Analysis for Windows".
- ^ "Full System Time Travel Analysis for Linux".
- ^ "Full System Time Travel Analysis for Android".
This programming-tool-related article is a stub. You can help Wikipedia by expanding it.