unable to watch java local class instance in eclipse <p>Here is a small sample:</p> <pre><code>public class LocalClassSample { public static void main(String[] args) { class Utils { public void printHello(String name) { System.out.println("Hello " + name); } public String outHello(String name) { return "hello " + name; } } Utils util = new Utils(); util.printHello("World"); } } </code></pre> <p>I put a break point at the last line. I am able to view util in the Variables window...</p> <p><img src="https://i.stack.imgur.com/xPM3O.png" alt="enter image description here"></p> <p>I try to view the same variable in the expressions window...it is unable to evaluate:</p> <p><img src="https://i.stack.imgur.com/216fJ.png" alt="enter image description here"> Update:</p> <p>Even tried inspecting the variable in the Display View...it does not evaluate: <img src="https://i.stack.imgur.com/RG3ty.png" alt="enter image description here"></p>