Consider a situation when you are debugging your code. You have a
var that is strictly greater than 1. should be greater than one under all conditions. Then you catch a div by zero exception at
r=1.0/var line. It would be nice to set a recorder that saves the state a line before
var becomes 0. Then roll back there and see what have happened.
Running the debugger in VM and saving state frequently is the best way I can think of. This solution is way too bulky.
Another nice feature would be a log of a sequence of executed lines. This would help a lot when dealing with inherited spaghetti code.
Is there an IDE plugin make periodic backups of the state of variables when debugging Java code?