remote (BlackBerry) debuggin [message #259214] |
Wed, 25 June 2008 15:51  |
Eclipse User |
|
|
|
I am trying to use Eclipse in developing and debugging a BlackBerry
project. In the debugger, when I have a String, on the Variables tab,
the Eclipse debugger only shows the object id --
s == "(id=1139302400)"
If I add an Expression for s.toString() then it shows the correct value.
"s.toString()" = "Hello World!"
Any ideas how to get Eclipse to show the String value without having to
enter an expression?
Thanks,
Paul
|
|
|
Re: remote (BlackBerry) debuggin [message #259226 is a reply to message #259214] |
Wed, 25 June 2008 23:11  |
Eclipse User |
|
|
|
I solved this one. I must admit - I'm really impressed with Eclipse.
Eclipse has a feature called "Detail Formatters" (in Preferences > Java
> Debug). I created one for type java.lang.String, giving it the code
snippet "toString()".
Now in the Variables tab in the debugger, in the box at the bottom of
that tab, it correctly shows the value of the String variable.
Paul
Paul Levin wrote:
> I am trying to use Eclipse in developing and debugging a BlackBerry
> project. In the debugger, when I have a String, on the Variables tab,
> the Eclipse debugger only shows the object id --
> s == "(id=1139302400)"
>
> If I add an Expression for s.toString() then it shows the correct value.
> "s.toString()" = "Hello World!"
>
> Any ideas how to get Eclipse to show the String value without having to
> enter an expression?
>
> Thanks,
> Paul
|
|
|
Powered by
FUDForum. Page generated in 0.07898 seconds