Reputation: 3589
I'm currently coding with Java in Eclipse, and I'm trying to use Eclipse's built in debugger to try and debug my code. However, once I enter debug mode and try to run the program till the breakpoint, the variables aren't showing up in the variable window. Any ideas?
Upvotes: 2
Views: 4552
Reputation: 426
I just had a similar problem, I could only see method arguments and this
members, but not local variables. I was searching in all possible project settings and found out this checkbox ("Add variable attributes to generated class files") wasn't checked. Make sure all 3 options (used by debugger) are on :
Upvotes: 1
Reputation: 397
This is usually caused by a rendering bug in Eclipse. Often letting the application run past the breakpoint, then trying to re-run again to the breakpoint fixes the display. Other times you have to restart the IDE.
Upvotes: 0
Reputation: 3771
Make sure you're not in the Breakpoints
tab as opposed to the Variables
tab on the top-right window in the Debug perspective. When in doubt, simply go to Window > Show View > Variables
.
Upvotes: 1