Cannot view variables values from Java sources during debug
While debugging a Java program, I cannot view variab开发者_如何学JAVAles values in java source code, for example in function Integer.valueOf(). I try to add variables in Expressions or Inspect, but get 'a cannot be resolved'
This is known problem. Typically you can see the argument values as arg0, arg1 etc and sometimes member variables. If lhballoti is right and the problem is that the JDK is compiled without debug information try to compile it yourself from sources (src.zip). I believe that it is hard to compile whole JDK but I think that you can compile only interesting classes. Then push this classes into bootclasspath when you are running your java program (using -Xbootclasspath/p
).
I hope this will work.
'a' is not a local variable in this method, however I don't think the JRE classes are enabled with full debugging information. It might not be possible to see local variables in the JRE.
精彩评论