In my attempts to troubleshoot a android.speech.SpeechRecognizer.ERROR_CLIENT
error in my app, I set breakpoints in SpeechRecognizer.java lines that invoke my listener's onError()
, i.e. 9 lines containing:
mListener.onError(ERROR_CLIENT);
This is because there are 9 different reasons for this error, but they are invisible to my app, and the preceding Log.e(TAG, "cancel() failed", e);
statement is nowhere to be seen on my Debug console.
Those breakpoints, however, are ignored.
I know for certain that those mListener.onError(ERROR_CLIENT);
are called, because setting a breakpoint in my app's listener's onError on
case SpeechRecognizer.ERROR_CLIENT:
works!
AFAICR, it should be possible to place a breakpoint inside a library jar. What am I missing?
Is it possible to breakpoint inside SpeechRecognizer.java
such that it breaks when reached?
(using Android Studio 2021.3.1 Patch 1)
In case the following brings up some insights, note the 69 errors in the original file from SDK 33: