BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-25-2008, 02:53 PM   #1
plevintampabay
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Question Can not display String variables in Eclipse (from the BlackBerry)

Please Login to Remove!

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
Offline  
Old 06-25-2008, 10:08 PM   #2
plevintampabay
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Default

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.
Offline  
Old 06-26-2008, 12:43 PM   #3
richard.puckett
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Default

Ah, nice one, dude. I've been looking for a solution to this for a long time. Thanks!
__________________
Do your homework and know how to ask a good question.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage Jackson Fiberglass Welding Hood picture

Vintage Jackson Fiberglass Welding Hood

$12.99



Vintage Honeywell Fire Alarm Door Panel Cover #12 Offers Welcome :-) picture

Vintage Honeywell Fire Alarm Door Panel Cover #12 Offers Welcome :-)

$100.00



Vintage Honeywell Fire Alarm Door Panel Cover #11 Offers Welcome :-) picture

Vintage Honeywell Fire Alarm Door Panel Cover #11 Offers Welcome :-)

$100.00



Vintage Honeywell Fire Alarm Door Panel Cover #13 Offers Welcome :-) picture

Vintage Honeywell Fire Alarm Door Panel Cover #13 Offers Welcome :-)

$100.00



10k yellow gold service pendant McNeil NRM Inc 0.11ct ruby vintage 2.5gr scr2354 picture

10k yellow gold service pendant McNeil NRM Inc 0.11ct ruby vintage 2.5gr scr2354

$750.00



Vintage McDonald Saf T Hat Metal Aluminum Large Helmet Logging Mining Collectibl picture

Vintage McDonald Saf T Hat Metal Aluminum Large Helmet Logging Mining Collectibl

$79.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.