Re: Debugger and function calls



To make the things clear, here is a sample:

public static void main(String args[]) {
String s = "hello";
s = null;//<-- breakpoint here
}

When the breakpoint is hit, I want to evalue expression
"System.out.println(s)", but Eclipse says
com.sun.jdi.InvalidTypeException: Type of the value not compatible with the
expected type. occured invoking method.

Where can I find advanced documentation about the Java/Eclipse debugger?

Thanks, Jan

when I stop a java program in a debugger (e.g. Eclipse), why I cannot call
methods like
System.out.println(someObject)
on data from my program? When I try to evaluate this, Eclipse says:
com.sun.jdi.InvalidTypeException: Type of the value not compatible with
the expected type. occured invoking method.

Thanks, Jan



.



Relevant Pages

  • Re: Debugger and function calls
    ... when I stop a java program in a debugger, ... When I try to evaluate this, Eclipse says: ... expected type. ... Ask smart questions, get good answers: ...
    (comp.lang.java.programmer)
  • Debugger and function calls
    ... when I stop a java program in a debugger, ... When I try to evaluate this, Eclipse says: ... expected type. ...
    (comp.lang.java.programmer)