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
. After searching in different sources I figured out that most likely the object was Garbage Collected. Clicking here and there I could retrieve my object by nevertheless in the Variables
view I cannot inspect the variable.
-vmargs -Dosgi.requiredJavaVersion=1.8 [email protected]/eclipse-workspace -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=1.8 -Xms512m -Xmx4096m --add-modules=ALL-SYSTEM
I'm running under Linux/OpenSuSe with OpenJDK 1.8.0_151. Any hints how to avoid that kind of GC problems? Is this some kind of setting in the IDE?
To put breakpoints in your code, double click in the left margin on the line you want execution to stop on. You may alternatively put your cursor in this line and then press Shift + Ctrl + B . To control execution use the Step Into, Step Over and Step Return buttons. They have the shortcuts F5 , F6 and F7 respectively.
F6 - execute a perform .. without going inside form.. endform... F7 - come out of a perform .. F8 - execute the report entirely or upto the next break point ..
Right click the variable, then click "Show Logical Structure", uncheck any collection.
While execution of your code is stopped at a breakpoint:
Variables
paneIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With