本文介绍了调试不能检查变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中调试

的问题是:String.hashCode()行:1489 [局部变量不可用]

因此,无法检查变量的值



请帮助我这通过提供一些指针



您好Tomasz Nurkiewicz
感谢您的努力,我采取了一个新的jdk(所有类的细节)抓住这些和。


while debugging in eclipse
the problem is: String.hashCode() line: 1489 [local variables unavailable]
thus, not able to inspect the values of variables

please help me on this by providing some pointers

Hi Tomasz NurkiewiczThanks for the efforts, i took a new jdk (haing all the class details) after catching on these How to debug .class files in ECLIPSE? and http://jdk6.java.net/download.html but then also facing same issue................

解决方案

JDK classes aren't compiled with debugging information, hence you can't see local variables during debugging. You'll have to rebuild JDK or use development version, see: Step through JDK source code in IntelliJ IDEA and Enabling debugging inside JRE classes.

这篇关于调试不能检查变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 16:18