What happened to debugging variables in the IDE? E...
# android-studio
a
What happened to debugging variables in the IDE? Everywhere in my code I have these useless errors on variables:
Copy code
'uuid' was optimised out
'registrationID' was optimised out
'rtcId' was optimised out
'bytes' was optimised out
and also:
Copy code
This variable is inaccessible because it isn't used after the last suspension point
u
I can probably not be too helpful here. But from the red error message in your screenshot I’d say debugging is not broken in general. What you experience is an issue of debugging coroutines / suspend functions.
Looks like variables are not saved/restored over suspension points ⏸️ if they are not needed after the suspension point
You can follow @Rafs’s advice to circumvent that: https://kotlinlang.slack.com/archives/CRDCFF3RC/p1656429388336529
770 Views