Results 1 to 8 of 8
- 01-24-2009, 06:25 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 12
- Rep Power
- 0
[SOLVED] Debug: values not shown for variables
I am using Eclipse Ganymede and during debugging, values for objects are not shown. For example I cannot look through a Java Collections object. Primitive types show their value but objects do not. When I click to view them I get this message:
Method "toString" with signature "()Ljava/lang/String;" is not applicable for this object
- 01-28-2009, 03:25 AM #2
Member
- Join Date
- Jan 2008
- Posts
- 36
- Rep Power
- 0
Hrmmm ive never had that problem, I will try to look into it for you
- 01-28-2009, 05:07 AM #3
That's a very odd message.
Are you using the Variables view to see the fields, or are you using Expressions?
- 01-28-2009, 05:12 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I think OP should have clear idea about object representing in Java. Once you use toString() just see an odd message as Steve says. But even that has a bit of meaning.
Yes how about this?
Originally Posted by Steve11235
- 01-28-2009, 07:18 PM #5
Member
- Join Date
- Jan 2009
- Posts
- 12
- Rep Power
- 0
Thanks for the responses. I figured out what was wrong yesterday. The problem was that I was using the gnu java libraries and compiler. Once I switched over to sun java 6 everything worked. Thanks again.
- 01-29-2009, 06:11 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
So, you have found the solution. Please mark the thread as solved.
- 01-29-2009, 08:29 PM #7
Member
- Join Date
- Jan 2009
- Posts
- 12
- Rep Power
- 0
Thanks I will be sure to do that from now on
- 01-30-2009, 03:33 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Debug challenge: how do you debug a Java program?
By CJSLMAN in forum New To JavaReplies: 60Last Post: 07-04-2009, 10:28 AM -
uploaded image not shown
By java_srinivasan in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-05-2008, 12:40 PM -
Retaining DB values as well as Dynamically generated Values.. Help Needed !
By rajivjha in forum Advanced JavaReplies: 0Last Post: 05-22-2008, 10:53 AM -
how to have function variables remember their values between calls
By asterik123 in forum New To JavaReplies: 2Last Post: 08-03-2007, 04:06 PM -
No output shown
By ai_2007 in forum Advanced JavaReplies: 4Last Post: 07-10-2007, 09:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks