Effective Debugging Kotlin Native in Xcode
summary
Shows how Kotlin Native debugs as C89 in Xcode and gives concrete tactics: reproduce the bug on Android first, add the shared sources to Xcode (use folders and reference files), install Xcode Cotlin and use breakpoints plus brew install xcotlin, evaluate values with LLDB commands PO/ P/ FRV and add debugger actions, avoid step-into by placing strategic breakpoints, find native symbols with image lookup -v and call them via casted function pointers, and use Hopper or nm to inspect binaries.
AI-written summary · about
chapters (17)
- 0:00Kotlin Native debugging intro
- 1:24Debugging challenges
- 2:27Xcode Kotlin plugin setup
- 3:11KMP debugging approach
- 6:48Android vs Xcode debugging
- 10:03Variables and expressions in Xcode
- 14:02Breakpoints for exceptions
- 15:36Stepping Kotlin Native code
- 18:48Debugging best practices
- 21:14Expression limitations
- 23:22LLDB commands
- 26:59Hopper Disassembler intro
- 27:22Calling Kotlin from native
- 30:43Debugging Objective-C in Kotlin
- 31:23Finding symbols in Hopper
- 34:34Calling Kotlin via LLDB
- 39:12Closing remarks Q&A
related talks
41mKotlin-Native for Android developers
33mDebugging: All You Need to Know
50mAdvanced Development and Debugging for Android/iOS
01h 02mAndroid Platform Debugging and Development
42mUnderstanding the Kotlin to Dalvik bytecode translation
36mDAAS: Debugging as a skill!
52mPowered by Kotlin
52mFantastic Bugs: How to Catch and Fix Them
