https://kotlinlang.org logo
#ios
Title
# ios
j

Jacob Rhoda

10/10/2023, 3:17 PM
Why do Strings look like this when debugging in Android Studio? Is there some way to fix it?
j

Jeff Lockhart

10/10/2023, 5:15 PM
You can right click and change the display format.
j

Jacob Rhoda

10/10/2023, 5:23 PM
Which menu option are you referring to?
j

Jeff Lockhart

10/10/2023, 5:26 PM
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

Jacob Rhoda

10/10/2023, 5:33 PM
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

Jeff Lockhart

10/10/2023, 5:37 PM
I'm sure there are some things that don't work as well with native yet.
j

Jacob Rhoda

10/10/2023, 5:38 PM
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

Jeff Lockhart

10/10/2023, 5:42 PM
Have you tried IntelliJ's debugger to see if it's any different?
j

Jacob Rhoda

10/10/2023, 5:49 PM
No, I can try that.
Hmm, it says that the KMM plugin isn’t compatible with Intellij
j

Jeff Lockhart

10/10/2023, 6:01 PM
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

Konstantin Tskhovrebov

10/11/2023, 7:28 AM
It's a known problem. @Ilia Solovei
👍 1
j

Jacob Rhoda

10/11/2023, 6:58 PM
@Konstantin Tskhovrebov Is there an issue for it already?
t

Timofey Solonin

10/12/2023, 9:10 AM
@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

Jacob Rhoda

10/12/2023, 1:32 PM
@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
3 Views