Re: Debugger and function calls
- From: "jan_bar" <nospam@xxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 16:07:33 +0200
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
.
- Follow-Ups:
- Re: Debugger and function calls
- From: Oliver Wong
- Re: Debugger and function calls
- From: Hendrik Maryns
- Re: Debugger and function calls
- References:
- Debugger and function calls
- From: jan_bar
- Debugger and function calls
- Prev by Date: Re: Debugger and function calls
- Next by Date: Re: What is a Java Annotation?
- Previous by thread: Re: Debugger and function calls
- Next by thread: Re: Debugger and function calls
- Index(es):
Relevant Pages
|