Hey everyone! Yesterday we released a 2.0 version ...
# touchlab-tools
t
Hey everyone! Yesterday we released a 2.0 version of xcode-kotlin, the Xcode plugin which brings debugging of Kotlin Multiplatform code to Xcode. It's a big improvement compared to our previous version, so make sure to update to get all the goodies. What's new: 🤯 Vastly improved debugging performance (~5x faster). 💯 Shows more information for each frame variable (see attached screenshots). 😱 Works both in Swift and Kotlin code. 🤩 Built-in support for List and Map with more coming (e.g. StateFlow, Set) I've written more details about the improvements: https://touchlab.co/xcode-kotlin-2-0
🎉 8
j
Thanks for the improvements 🎉 p.s. Are there any plans to debug published packages added by SPM? Without adding Kotlin source files manually?
t
The problem with that is without sources you can't really set breakpoints as you'd normally, clicking into the gutter of a line in Xcode. You'd have to set breakpoints manually in LLDB using
breakpoint set --file SomeKotlinFile.kt --line 42
(or
br s f SomeKotlinFile.kt -l 42
or
b SomeKotlinFile.kt:42
) which isn't a great experience. So you'll always need access to the code if you want to set the breakpoint. But you can already use the LLDB command and it'll stop and you should see the frame. If you have the repository set in a way where SPM downloads even the Kotlin sources, it might be possible to set breakpoints in those files, but I'm not sure.
🙏 1
j
and should I remove added package dependency and add source code manually, when I want to debug? I mean can we have both package and source code when we want to debug? As I remember I had to remove package dependency, cause I had some error
If that is possible, then I will think about to somehow publish framework and source files at the same time and then fetch them inside xcode project