Locally declared variables can not be inspected

前端 未结 4 1739
借酒劲吻你
借酒劲吻你 2020-11-27 12:52

Sometimes when I am debugging code in Eclipse it happens that although I can see and inspect class member variables without any difficulty I am unable to inspect the values

4条回答
  •  执笔经年
    2020-11-27 13:21

    I tried link (http://www.javaadvent.com/2014/12/recompiling-java-runtime-library-with.html), downloaded ant script and modified it. Modification: passed in javac. It generated rt.jar. Replaced rt.jar of JRE. (Don't forget to keep a backup).

    Now I am able to watch, inspect local variables of any class in rt.jar during debug in eclipse.

提交回复
热议问题