Reversible Debugging

Patrick Sabin patrick.just4fun at gmail.com
Sat Jul 4 04:04:08 EDT 2009


Gabriel Genellina schrieb:
> Do you want reverse execution, like an undo function? Undo all changes 
> made by executing some piece of code?
I am not completly sure, if I really want to make exact undo, i.e. 
undoing commands by reversing all their effects, or just restoring the
program state to an arbitrary state of its history, which would not 
effect things like files.
> There are many cases where that's hard to do, or impossible. How to 
> undo object destruction? How to undo external effects, like writing to 
> files?
Object destruction should not be a big problem to restore. But writing 
files or other resources is because it is not guaranted that it is even 
possible or wanted.
I considered either ignoring undoing external commands completly or 
adding some plugin system to do it.
> You should think carefully what can and cannot be done - good luck!
>



More information about the Python-list mailing list