It would be nice with a new feature to allow debugging (stepping) in reverse.
Sometimes I will step through code, line by line, and I accidentally
over-step one of more lines where I wanted to inspect the frame. In this case I have
to restart and try again. Instead it would be nice to just click "Step Back" a couple of times.
I understand this may not always be possible, especially if the code manipulates external
resources, but you could possibly identify those instances and temporarily disable the
reverse debugging at that point (temporarily).
I'm not an expert on the JVM but I imagine that you could just take stack snapshots
of the last (say 5) lines executed (and of course heap changes...).
Is this a realistic idea? I think such a feature could be helpful.