-1

I have the following doubt about the Eclipse debugger dbugging a Java application.

When it stop on a break point I know that I can go to the next step. But can I also go to the previous one?

SpringLearner
  • 13,738
  • 20
  • 78
  • 116
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
  • 1
    yes, you can...in the debug view under the debug tab, you can click on the steps where your code ran...if I remember well – Arctigor Jun 10 '16 at 10:14
  • 3
    also you can take a look at this answer here: http://stackoverflow.com/questions/4331336/step-back-in-eclipse-debugger – Arctigor Jun 10 '16 at 10:17
  • 1
    No you cannot. But there are tools like chronon that record the execution and can do that – Svetlin Zarev Jun 10 '16 at 10:34

1 Answers1

0

The best compromise is "Drop to Frame" (one of the icons in the debugging area), which essentially resets the stack frame and puts you at the top of the method. This won't reset any external side effects, so if some code between the top of the method and your current position changed any properties of an object, you'll have to deal with that.

David M. Karr
  • 14,317
  • 20
  • 94
  • 199