is it possible to “go back” in java eclipse debugg

2019-01-17 05:25发布

问题:

Is there an option to take the stack pointer - or arrow in the debugger, backward and change the current execution line, as in visual studio.
Today I am using a "workaround" of modifying the source file. this will take me to the beginning of a method, but sometimes it is just not good enough.

回答1:

The feature is called 'Drop to frame' right click on any line in stack, choose 'Drop to frame' and you go back to selected method beginning. Check Eclipse help topic.



回答2:

Sadly it is not possible to go back to a single line, the JVM does not support this. You can only jump to the start of the current function, as you propably know (Drop to frame).



回答3:

It's not out of beta yet, but Chronon is a promising debugger that has a "step back" feature.