Modify/view static variables while debugging in Eclipse

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.


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