Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin iOS Debugging

Kotlin iOS Debugging

Debugging tools for iOS devs using Kotlin Native and Multiplatform

Kevin Galligan

May 08, 2019
Tweet

More Decks by Kevin Galligan

Other Decks in Technology

Transcript

  1. RUNTIME_USED int32_t Konan_DebugObjectToUtf8Array(KRef obj, char* buffer, int bufferSize); // Print

    to console string representation of an object. RUNTIME_USED int32_t Konan_DebugPrint(KRef obj); // Returns 1 if obj refers to an array, string or binary blob and 0 otherwise. RUNTIME_USED int Konan_DebugIsArray(KRef obj); // Returns number of fields in an objects, or elements in an array. RUNTIME_USED int Konan_DebugGetFieldCount(KRef obj); // Compute type of field or an array element at the index, or 0, if incorrect, // see Konan_RuntimeType. RUNTIME_USED int Konan_DebugGetFieldType(KRef obj, int index); // Compute address of field or an array element at the index, or null, if incorrect. RUNTIME_USED void* Konan_DebugGetFieldAddress(KRef obj, int index); // Compute address of field or an array element at the index, or null, if incorrect. RUNTIME_USED const char* Konan_DebugGetFieldName(KRef obj, int index);