In my code, I am trying to output the value of src
in the expressions window.
public void doIt() {
String src = "test";
System.out.println(src);
}
In Eclipse. I set a breakpoint on a line 3, and I open the "Expressions" window.
I add an expression src
to evaluate, and I get
I've used the Expressions features... COUNTLESS times in my years of Java debugging.. Why does this happen now?
I've just recently started using Eclipse Juno.. vs Indigo. Did they change the way Expressions work?
src
is out of scope – Adducesrc
in the same class, or class namedsrc
in the same package, or a top level package by that name, then it might conclude that you're using an identifier that cannot stand alone in an expression. – Glebe