Variables not showing while debugging in Eclipse
Solution 1
I ended up trying something easy by resetting the Debug perspective, which seemed to work:
Window => Perspective => Reset Perspective...
Thanks for the comments.
Solution 2
Window --> Show View --> Variables
Solution 3
My problem was that I couldn't see variables names, but just the value. After trying quite a while I got the solution: Click on the down arrow (in degub Variables tab) --> Layout --> show columns
It did the trick!
Solution 4
Resetting the perspective wasn't quite enough for me, I had to first delete the "Variables" tab and then reset the perspective (which reinstated the Variables tab in a working state). One other thing not mentioned above which might help others - when the variables tab is not working, the tab title is in italics (whatever that signifies). When it's working it goes back to normal font.
Solution 5
I restarted Eclipse and it worked again.
Related videos on Youtube
well actually
Updated on July 08, 2022Comments
-
well actually almost 2 years
I am running Eclipse Galileo for developers.
When I run in debug mode, the current variables and their values are not coming up in the Variables window. The window remains empty when I step through my code after a breakpoint.
Last night it was working, so I'm perplexed. Any reason why this might be happening and any tip on troubleshooting?
-
Gaurav about 13 yearsJust close that Variable window. And open it again.
-
-
stephenbayer almost 13 yearsI keep running into this same issue, and resetting the perspective has been working for me. thanks for posting this.
-
haridsv about 11 yearsActually, either this or the additional step from @tonyeva did it, but it didn't work immediately (ie., in the current stack), so thought the problem didn't go away. However, when the debugger stopped at a different place, the variables started showing up.
-
Lal almost 10 yearsThis does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post.
-
capacitor24 over 9 yearsThe original question was: Any reason why this might be happening? The other answers, including the accepted answer, do not provide an answer to the question either, but do explain how to fix the issue. My answer does the same: here is what works on my system. But I'm sure you're just trying to help me along. Thanks!
-
capacitor24 over 9 yearsThanks for the ban, Lai. You're one classy act.
-
ermanno.tedeschi over 9 yearsWindow --> Show View --> Debug --> Variables
-
Stephen Kidson about 9 yearsSometimes you need to click the thread again to get the Variables pane to update. In the Debug pane, find the thread with (Suspended) beside it, expand it, and click the top stack frame.
-
Mark Madej about 9 yearsMe too. Closing and reopening the "Variables" window did not work, but exiting Eclipse and restarting did.
-
tworec over 8 yearsthakns, it helped me too with eclipse Mars. Down arrow is at upper right corner of Variables Tab bar.
-
Dave over 8 yearsThis also helped me in Eclipse Mars, even though restarting and removing the view didn't helped at all.
-
Vasily Liaskovsky over 7 yearsThat has nothing to deal with Eclipse and java. Are you sure you are answering the question you wished to answer?
-
redeemed over 6 yearsWorked on Neon , great answer !
-
Max about 6 yearsI had to close the project, restart eclipse, re-open the project, and then the Variables window began to work again. Super strange.