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

前端 未结 4 1656
庸人自扰
庸人自扰 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:36

    Instead of turning off logical structure, you can add a logical structure formatter, as detailed in this answer: Eclipse debug mode view instance variable values. This prevents the exception and lets you see the variable in a useful way.

提交回复
热议问题