12
When in debug (eclipse), I cannot see variables content in the variables view, nor in Expressions view, nor in Display view - if the variables are defined outside an anonymous class but the debug is inside the anonymous class.
When I try to see the content in debug, I get the error: x cannot be resolved to a variable.
In the following example, x cannot be resolved:
private void someMethod(final Object x) {
new Runnable() {
public void run() {
Log.i(x); // x is printed correctly but cannot be resolved when in Debug
}
}.run();
}
This question regards the eclipse development environment - regarding debugging Android. It's not a discussion about final, nor compilation - just debugging.