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


WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card picture

WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card

$129.00



NEW Mitsubishi A1SNMCA-8KE Memory Cassette picture

NEW Mitsubishi A1SNMCA-8KE Memory Cassette

$151.62



New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC picture

New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC

$281.95



NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In picture

NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In

$284.26



1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty picture

1PC New ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card 1year waranty

$79.39



NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In picture

NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In

$284.77







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