Re: Debugger and function calls
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 15:43:43 GMT
"jan_bar" <nospam@xxxxxxxxxxxxx> wrote in message news:e5k7uv$1sv3$1@xxxxxxxxxxxxxxxxxx
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.
If I put the above code in a class, add the breakpoint on the line with the comment, run the debugger, switch to the Expression view, and add the expression "System.out.println(s)", the expression evaluator correctly reports that the expression evaluates to void.
In other words, it works when I try it.
- Oliver
.
- Follow-Ups:
- Re: Debugger and function calls
- From: Chris Uppal
- Re: Debugger and function calls
- References:
- Debugger and function calls
- From: jan_bar
- Re: Debugger and function calls
- From: jan_bar
- Debugger and function calls
- Prev by Date: Re: Can I make a class file self destruct?
- Next by Date: Re: The import org.apache.tools cannot be resolved
- Previous by thread: Re: Debugger and function calls
- Next by thread: Re: Debugger and function calls
- Index(es):
Relevant Pages
|