does anyone know how i can debug code that is writ...
# multiplatform
l
does anyone know how i can debug code that is written with kotlin on ios? when i run the code i cant seem to watch any variables, i get them as ObjcHeader or ObjcObject and i cant know the contents of them. Does anyone know how to fix it? if it is fixable?
k
There's the KMM plugin for Android Studio, and we publish a plugin for Xcode: https://github.com/touchlab/xcode-kotlin
l
i installed the KMM plugin for android studio
and the plugin for xcode as well
but it does not show the contents of the variables
k
KMM plugin doesn't (or didn't last I tried), xcode plugin should
If you're debugging Swift code that calls kotlin, that's kind of a different story. If you're debugging kotlin, it should show variables
l
i’m debugging kotlin
i am actually debugging cinterop
does that matter in any way ?
k
Ah, that's different I imagine. The lldb script is written to look at kotlin objects. It won't tell you what's happening inside cinterop
I assume, anyway. Haven't tried.
l
do you know anything about cinterop? there are methods missing in ios extensions that did not go innto the cinterop for some reason