Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am unable to see the values of strings and other variables when debugging Java in Eclipse.

How can I view the values of strings and other variables in my Java program?

I'm using Eclipse's debugger. My watchpoints are blank; no variable values are visible, but i'd expect them to be.

share|improve this question

closed as too localized by Tom Wijsman, Synetech, Nifle, Sathya Mar 27 '12 at 4:45

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Welcome to Super User! You might want to add a little more information to your question. Preferably a screenshot of what you're seeing and what you're expecting instead. (New users can't post images, just drop me the link!) –  slhck Mar 1 '12 at 22:07
    
Why on earth 2 downvotes, the question is pretty clear by the way. A link to a screenshot may still help. Perhaps you should try stackoverflow / this question should be migrated there since Eclipse is a programming IDE. Have you put breakpoints in? –  barlop Mar 1 '12 at 22:32
    
also, does this help answer it? stackoverflow.com/questions/7378993/… –  barlop Mar 1 '12 at 22:34
    
Thanks, it helped. I think adding a breakpoint got it to show values. –  make Mar 1 '12 at 22:37
add comment

1 Answer 1

Adding a breakpoint allows you to see the values in the watchpoints.

share|improve this answer
    
Since the OP hadn't posted the answer and they like answers to be posted, i've post it, and the answer is within my comment as you saw..(Adding a breakpoint allows you to see the values in the watchpoints). Your question was very clear, I understood it. –  barlop Mar 6 '12 at 0:16
    
Generally though for programming questions, stackoverflow is the place.. sometimes you can try them on here when there's an overlap, as perhaps here, but you get a large proportion of lower calibre responses/comments. Sometimes people will say "your question isn't clear", (in this case you were clear), and if you had asked in stackoverflow, they'd have understood it. –  barlop Mar 6 '12 at 0:17
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.