While debugging in Android Studio 3.5.3 I usually don't have problems. However I stumbled onto a problem while debugging inside the Android source, specifically the file Sdk\sources\android-28\android\bluetooth\BluetoothGatt.java
Once suspended at the breakpoint indicated below, the variable e
is not listed in the Variables tab. Am not sure if this is by design and if so, what is the cause of it? What causes some variables to be available, while some are not? Various local variables are available, but not the e
variable.
My breakpoint is here, at line 1259:
try {
mService.writeDescriptor(mClientIf, device.getAddress(), descriptor.getInstanceId(),
AUTHENTICATION_NONE, descriptor.getValue());
} catch (RemoteException e) {
Log.e(TAG, "", e); // <-- HERE (breakpoint)
mDeviceBusy = false;
return false;
}
Systems used:
OS: Win 10
Android Studio: 3.5.3
Build Tools: 29.0.2
SDK Tools: 26.1.1
Platform Tools: 29.0.5
Gradle: 3.5.3
Devices tested:
Huawei P20 Pro (Android 9)
Huawei Mate 9 (Android 9)
PS The Log.e
statement should print the stacktrace contained in the e variable to LogCat, however it is nowhere to be found after thorough inspection. Therefore I am very interested in the contents of the exception variable.
Screenshot demonstrating the aforementioned issue with the debugger