Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 379
oshai Avatar asked Feb 01 '11 16:02

oshai


People also ask

How do I go back a step in Eclipse debugger?

Yes, Eclipse CDT has support of historical debugger feature. Open Debug Configuration -> Debugger -> Enable Reverse Debugging at startup . Than you can press shift+F5 or shift+F6 for step back like F5 or F6 for step forward.

Can you go back in a debugger?

Using the new Step Backward and Forward buttons So, if you've just taken a step in live debugging (F10 or F11), you can use the Step Backward button to quickly navigate to the previous step.

How do I move the debug pointer in Eclipse?

Press F8 (which is also Resume button),that will take you to the break point. From there debug each line with F6. If you want to go to next break point press F8.

Can I debug Java in Visual Studio?

Visual Studio Code allows you to debug Java applications through the Debugger for Java extension. It's a lightweight Java debugger based on Java Debug Server, which extends the Language Support for Java™ by Red Hat.


1 Answers

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.

drop to frame picture

like image 63
gertas Avatar answered Sep 21 '22 11:09

gertas