Hello, everyone What is the best way to debug app....
# multiplatform
n
Hello, everyone What is the best way to debug app.framework (library generated for iOS part). I call method of one of the common classes from iOS sources and after that - nothing. Just output in XCode debug panel. I see kotlin.TypeCastException, but I don’t understand there it happend and what action caused it. I tried to add try/catch block inside common class method, but nothing changed.
o
Just debug it with lldb/xcode as usual, try to create small reproducer and file a bug
n
@olonho Thank you. Sorry but I am afraid “as usual” is not usual for me. I looked here : https://kotlinlang.org/docs/reference/native/debugging.html But still don’t understand how to debug using lldb.
i
You just put breakpoint via LLDB command tool like https://kotlinlang.org/docs/reference/native/debugging.html#breakpoints and then use the same LLDB to step over the source code. MPP for debug builds produces symbol file that will be used to symbolicate binary framework
*.dSYM
. Follow the steps in the doc for LLDB tool. It should be straightforward
n
Thanks