Accepted answer

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

note: you do not have to restart eclipse.

enter image description here


you might also try writing the expression e.g. self::$value in the watch window


window -> show view -> other -> debug -> expressions -> right click on window -> add watch expression... -> enter the name of the variable you want to see


you can view static variable and also edit during runtime. click on small arrow pointing downword. see below image enter image description here


simply put your mouse cursor over the static variable in the code and you will see the assigned value.

Related Query

More Query from same tag