Why do Strings look like this when debugging in An...
# ios
j
Why do Strings look like this when debugging in Android Studio? Is there some way to fix it?
j
You can right click and change the display format.
j
Which menu option are you referring to?
j
I don't recall specifically (and I'm not in front of Android Studio right now), but I remember it is an option. Maybe "View as Array..." brings up an option? Or else "Customize Presentation"?
j
The “Memory View” shows me the raw memory with an ASCII readout, but doesn’t seem to be aware of it being a string. (Stops before null-terminator).
Thanks for your help, tho.
j
I'm sure there are some things that don't work as well with native yet.
j
Yeah. It’s a little annoying because I can’t use Xcode to debug Kotlin code right now (the plugin is broken still) and Android Studio doesn’t have a very useful debugger.
j
Have you tried IntelliJ's debugger to see if it's any different?
j
No, I can try that.
Hmm, it says that the KMM plugin isn’t compatible with Intellij
j
Oh, yeah, I forgot. There's an early-bird plugin that I was testing with IntelliJ, but it doesn't work on the latest version. I'm anticipating an announcement for a KMP IntelliJ plugin in the near future.
👀 1
k
It's a known problem. @Ilia Solovei
👍 1
j
@Konstantin Tskhovrebov Is there an issue for it already?
t
@Jacob Rhoda Are you using Xcode 15 by any chance? There was a bug with symptoms very similar to what is happening in your screenshot. Could you please try out 1.9.20 once it is out or switch to Xcode 14 to see if your issue is related to this bug.
j
@Timofey Solonin Yeah, that’s possibly it. I am indeed using Xcode 15 for iOS 17 support.
I tried updating to the preview version of Android Studio, and also Kotlin 1.9.20-RC. I’m having an issue where the iOS Debug option is grayed out in AS. Do I have an incompatibility somewhere? It will still build & run in the iOS simulator, just not debug.
After enabling the experimental IDE features, I was able to launch the app in debug mode. Also, all the strings / arrays are fixed now!! 🥳
🎉 3