Re: Debugger and function calls
- From: Hendrik Maryns <hendrik_maryns@xxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 17:40:44 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
jan_bar schreef:
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.
Normally, you should see s in the Variables view. If that isn’t there,
open it. If you then click on s, you will automatically see its String
representation. You can then click there and enter additional queries
if you like. Also in the expressions view, although I am also still
struggling with it.
Did you read the help documentation that comes with Eclipse? It is all
in there, albeit very terse.
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFEfbj8e+7xMGD3itQRAkgWAJ4owWhfRhjNeRyfVfnFbNESKNlnxQCeN2vz
hQvz1gPmgutSXqLM3ZCR9G0=
=NR7R
-----END PGP SIGNATURE-----
.
- References:
- Debugger and function calls
- From: jan_bar
- Re: Debugger and function calls
- From: jan_bar
- Debugger and function calls
- Prev by Date: Re: EnumSet + contains: strange behavior
- Next by Date: Re: Can I make a class file self destruct?
- Previous by thread: Re: Debugger and function calls
- Next by thread: Re: Debugger and function calls
- Index(es):
Relevant Pages
|
|