Java debugger can't see variables some times.
Proof:
Often this occurs inside anonymous inner classes while variable is "closure" (I know this is not exact term here). If "closure" is class member variable, I can see it if prepend with MyClass.this.myvariable
, but if it is method local variable, then I can't see it at all.
Is there any way to see such variables?
please check that the code you are running is in sync with code in your IDE. - you may have change code while application is running and it will change line - sometime eclipse does not run updated code, try to do clean build and restart app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With