How would I debug the calculator sample on iOS? <h...
# kotlin-native
s
g
Probably only from XCode, not sure about CLion
s
How would I debug it in XCode? I have things running in xcode, and can't seem to find a way to debug it at all
o
no difference from any other native app - connect to it in the process list or set breakpoint and start
s
in xcode you mean? I can debug swift code, but I can't find a way to set a breakpoint in the kotlin code. Is there a way to do that?
If you are talking about clion, what configuration type should I use?
o
debugging in xcode (including going inside Kotlin source) seems to work. Object variable inspection does not yet.
t
interesting, that doesn’t work for me
👍 1
It always steps over the kotlin code, but never inside
s
@spierce7 when in lldb, you can type
b kfun:
and you’ll have autocompletion
that said, the 0.5 tagged release had an issue when debugging frameworks. If you compile master from source, it will work as expected (w/o variable inspection, as mentioned by Nikolay)
👍 1
s
ah, I'm not familiar with what lldb is. When I saw debugging advertised, I expected I'd be able to set a breakpoint on kotlin source and catch it either from xcode or clion. I suppose I need to wait a bit more.