https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Nikolai

04/10/2019, 4:48 AM
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

olonho

04/10/2019, 7:00 AM
Just debug it with lldb/xcode as usual, try to create small reproducer and file a bug
n

Nikolai

04/10/2019, 7:13 AM
@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

ivan.savytskyi

04/10/2019, 7:46 PM
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

Nikolai

04/11/2019, 9:50 AM
Thanks