'Eclipse Debugger Problem: com.sun.jdi.ObjectCollectedException occurred while retrieving value

I am using the following Eclipse, 2019-03 (March):

enter image description here

Version: 2019-03 (4.11.0)
Build id: 20190314-1200

I'm unable to debug properly because randomly, out of the blue, when click on Variables or Expressions, the window suddenly becomes this:

enter image description here

Please note that I tried playing with this setting, both On and Off, as suggested in some threads, but it didn't help:

enter image description here

Show Method Result After a Step Operation

Any other ideas?



Solution 1:[1]

Solved this issue with possible work-around.

  1. Right click on the variable and go to the "Show Logical Structure" field. enter image description here

  2. Uncheck the "Array" field. enter image description here

  1. Validate the variable now. Hope this will show the your corresponding results.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jerry