Eclipse: Debugging & inspection of variables causes com.sun.jdi.ObjectCollectedException

前端 未结 4 1657
庸人自扰
庸人自扰 2021-02-07 03:15

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

4条回答
  •  温柔的废话
    2021-02-07 03:20

    While execution of your code is stopped at a breakpoint:

    1. Right-click the variable in the Variables pane
    2. Clicking on the collections (such as the Array in the image below) will uncheck them
    3. Now you can inspect the variable

提交回复
热议问题