RevDB, a reverse debugger

Pubblicato il: 09 ottobre 2016
sul canale di: PyCon South Africa
939
5

Armin Rigo
https://2016.za.pycon.org/talks/42/
RevDB is an experimental "reverse debugger" for Python, similar to UndoDB-GDB or LL for C. You run your program once, in "record" mode, producing a log file; once you get buggy behavior, you start the reverse-debugger on the log file. It gives an (improved) pdb-like experience, but it is replaying your program exactly as it ran---all input/outputs are replayed from the log file instead of being redone.

The main point is that you can then go backward as well as forward in time: from a situation that looks really buggy you can go back and discover how it came to be. You also get "watchpoints", which are very useful to find when things change. Watchpoints work both forward and backward.

I will show on small examples how you can use it, and also give an idea about how it works. It is based on PyPy, not CPython, so you need to ensure your program works on PyPy in the first place (but chances are that it does).


In questa pagina del sito puoi guardare il video online RevDB, a reverse debugger della durata di online in buona qualità , che l'utente ha caricato PyCon South Africa 09 ottobre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 939 volte e gli è piaciuto 5 spettatori. Buona visione!