views:

2054

answers:

3

As per the question. In the debug view, there's the Variables frame. It shows all the values of member variables of the current object, and all of the local variables, but it doesn't show any static variables of the object's class.

How do I get to these?

Some googling has suggested I press the button on the toolbar, but there's nothing on the Variables frame's toolbar except "Show Type Names" "Logical Structure" and "Collapse All" (Eclipse 3.4.2).

Any advice?

A: 

Window->Show View->Other->Debug->Expressions->Right Click on Window->Add Watch Expression...->enter the name of the variable you want to see

+6  A: 

In the Debug Variables view their is a arrow button in the right of the view. the tooltip of this button is "Menu". When you click this button a drop down menu is shown where you can select

"Java" -> "Show static variables"

Markus Lausberg
A: 

Simply do a mouseover on the static variable in the code and you will see the assigned value.

Bhushan