Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Oxygen - Debugging Issue "Step Over"

Since updating Eclipse from Neon to Oxygen I've an issue with the "F6 - Step Over" function while debugging my code. Each time I'll use "Step Over" and the current line contains a method call I'll get into the method (behaviour of "F5 - Step Into"). The same behaviour occurs when using the "Step over" - button. After stepping into the method I lost connection (e. g. when using "F6 - Step Over" again) to the debugger and an error occurs: "com.sun.jdi.InternalException: Got an error code in reply:35 occurred creating step request.".

A typical code line which causes the mentioned problem looks like:

Collection<Object> coll = getSomething(...);
...
...
private Collection<Object> getSomething(...) { ... }

Does anyone have the same issue and can give me a hint how to solve this?

like image 293
AnarchoEnte Avatar asked Aug 29 '17 08:08

AnarchoEnte


People also ask

How do I fix debugging in Eclipse?

First, we need to start the Java program within Eclipse in debug mode. This can be achieved in two ways: Right-click on the editor and select Debug As -> Java Application (shown in below screenshot) Debug the program from the toolbar (highlighted in below screenshot)

When debugging What does step over do?

If the current line contains a function call, Step Over runs the code and then suspends execution at the first line of code after the called function returns. Step Out continues running code and suspends execution when the current function returns. The debugger skips through the current function.

How do I Stepback in Eclipse debugger?

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.


1 Answers

I had the exact same problem and found an answer to your question:

On the page https://www.eclipse.org/eclipse/news/4.7/jdt.php#step-show-methodresult they introduced this new feature. If you disable it, Step Over will work as always ;-)

go to Window - Preferences - Java - Debug and disable "Show method result after a step operation (if supported by the VM; may be slow"

problem view

Why they enabled an experimental feature that disastrous is anyones guess...

like image 79
karakal Avatar answered Sep 30 '22 18:09

karakal