BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-26-2009, 03:57 PM   #1
plevintampabay
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Default can not display String or array values

Please Login to Remove!

I am debugging on an actual device.
When I try to display the value of a String, I get

com.sun.jdi.ObjectCollectedException occurred retrieving type

I read the post BlackBerry Support Community Forums - Re: Help: Debugging on device using Eclipse - Java Development - BlackBerry Support Community Forums where Mr Sohm says to use System.out.println or to download a simulator.

I need more info on both of these options.
Where do I use println? in the code or can it be used in the debugger some how? Where will the output go?
I have a simulator for my device. How does that help me display values from the device?
Offline  
Old 02-26-2009, 08:09 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

System.out.println() will show up in the debugger "Output" window when you are attached to the device.
Offline  
Old 02-27-2009, 11:40 AM   #3
plevintampabay
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Default I found it

Dougsg38p - thank you for the reply. I just tried this.

It goes to the Output tab in JDWP.

This works when I put the println() calls in the compiled code.
Is there any way to do it from the debugger (Eclipse?).

Its hard for me to believe that one can not display a String value in the debugger when debugging on a BlackBerry device.

Thanks,
Paul
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


Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print picture

Armco Policies Dec 1965 Steel Plant Vintage 26 pgs booklet Butler, Pa 29th print

$7.49



Vintage DEC PDP11 Option Bulletin MSV11-L Memory Module 1981 picture

Vintage DEC PDP11 Option Bulletin MSV11-L Memory Module 1981

$2.95



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00



Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue picture

Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue

$141.00







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