Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Step Back debugging in Eclipse

sometimes when I debug in Eclipse, I found some thing wrong so I want come back and debug again, but I want to do that just for couple statements.

I saw

How to step back in Eclipse debugger?

is it possible to "go back" in java eclipse debugger like dragging the arrow in VS

and I know about Drop to frame but I can't use this to step back any line I want. I need some thing else. For example if you use debug in Visual Studio, you can drag and drop the debug arrow anywhere you want. You can bring the debugger to previous statement and debug it again. I need something like this in Eclipse but Drop to frame doesn't do that.

Thanks.

like image 605
Taher Avatar asked Oct 21 '22 10:10

Taher


1 Answers

The linked answers suggest to use a third-party product to provide exactly this feature. If you don't want to do that and are not satisfied with drop to frame, there is one more option. You can set a breakpoint before the interesting place (or just drop to that frame), and then evaluate arbitrary code in this context (see Eclipse Help or this blog post).

like image 194
mkalkov Avatar answered Oct 23 '22 09:10

mkalkov