Java – Using the Eclipse remote debugger throws com.sun.jdi.InternalException

debuggingeclipsejava

The following error is being thrown:

com.sun.jdi.InternalException: Got error code in reply:35 occurred while retrieving value. for all expressions

I am getting this error for all expressions and cant find anything on it. My guess is that the debugger isn't correctly connecting to the remote version, but I am not sure.

Best Solution

It looks like the problem is related to the new debug feature "Show method result after a step operation": See the thread Eclipse Oxygen - Debugging Issue on the Eclipse forum:

The workaround is to go to Preferences -> Java -> Debug and disable the option "Show method result after a step operation (if supported by the VM; may be slow)".

See also the bug report in the Eclipse Bugzilla Bug 531706 - Oygen.2 com.sun.jdi.InternalException: Got error code in reply:35 while debugging