I debug my program and add here and there a breakpoint. After a stop I want to inspect some of the variables and get sometimes a com.sun.jdi.ObjectCollectedException
com.sun.jdi.ObjectCollectedException
While execution of your code is stopped at a breakpoint:
Variables