Hey guys,
I installed touchlab/xcode-kotlin for debugging Kotlin code from iOS. the installation seems successful, but Xcode is not hitting the breakpoint for some reason.
I also see
Stop hook #1 added.
in Xcode log. The Xcode Project navigation says
Unknown ID
for the break point. what am I missing ❓
j
Jason
10/30/2024, 5:59 PM
Do breakpoints in normal Swift code work for you? When the breakpoint visual in the gutter is dashed blue lines, Xcode has a problem usually. Reboot Xcode usually fixes it. Just tried on my side, this was working before, like yesterday as I was able to step thru Kotlin code. Today, no go. Breakpoints are totally ignored in Kotlin side only, bummer. I'm gonna need to research this issue also
👍 1
l
Loe
10/30/2024, 6:17 PM
normal Swift breakpoints work
Loe
10/30/2024, 6:19 PM
maybe i'm missing something in Xcode build settings?
j
Jason
10/30/2024, 6:47 PM
I don't think so, should just work if you followed the instructions. I didn't modify build settings and it worked before.
Just an update, today stepping into kotlin shared code from an Xcode break point is working. I can even set the break point in the Kotlin function and Xcode stops there allowing me to step thru the code. Only thing I did was probably restart Xcode.