Hasnalkar Pralhad
Hasnalkar Pralhad

Reputation: 31

how do i take step reverse while doing debugging in eclipse ide for java

it happens to me many times: I'm stepping with the debugger through my code, and ups! i made one step too far! Debugging, and made one step over too farenter image description here

what now? restart the whole debugging session?

actually, there is a way to go ‘backwards’

Upvotes: 1

Views: 308

Answers (1)

Umeshwaran
Umeshwaran

Reputation: 647

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

https://help.eclipse.org/2021-03/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/views/debug/ref-droptoframe.htm

You can only jump to the start of the current function . Please keep that in mind.

Drop to Frame

Upvotes: 2

Related Questions