Jose Garcia
09/08/2022, 10:56 AMKonstantin Tskhovrebov
09/09/2022, 9:51 AMJan Kuchař
01/13/2023, 5:05 PMJan Kuchař
01/16/2023, 10:28 AMKonstantin Tskhovrebov
01/16/2023, 10:33 AMKonstantin Tskhovrebov
01/16/2023, 10:34 AMJan Kuchař
01/16/2023, 10:35 AMKonstantin Tskhovrebov
01/16/2023, 10:37 AMKonstantin Tskhovrebov
01/16/2023, 10:38 AMJan Kuchař
01/16/2023, 10:38 AMKonstantin Tskhovrebov
01/16/2023, 10:40 AMKonstantin Tskhovrebov
01/16/2023, 10:40 AMJan Kuchař
01/16/2023, 10:41 AMJan Kuchař
01/16/2023, 10:44 AMJan Kuchař
01/16/2023, 10:52 AMKirill Shmakov [JB]
01/16/2023, 10:55 AMLLDB
console:
br list
image dump line-table
and share output?Jan Kuchař
01/16/2023, 11:02 AM(lldb) br list
Current breakpoints:
1: name = 'os_log_fault_default_callback', locations = 1, resolved = 1, hit count = 0
1.1: where = libsystem_trace.dylib`os_log_fault_default_callback, address = 0x000000018006ddb0, resolved, hit count = 0
2: names = {'objc_exception_throw', '__cxa_throw'}, locations = 2, resolved = 2, hit count = 0
2.1: where = libobjc.A.dylib`objc_exception_throw, address = 0x000000018005110c, resolved, hit count = 0
2.2: where = libc++abi.dylib`__cxa_throw, address = 0x000000018023dc84, resolved, hit count = 0
Kirill Shmakov [JB]
01/16/2023, 11:06 AMJan Kuchař
01/16/2023, 11:06 AMJan Kuchař
01/16/2023, 11:07 AMDid you put any line breakpoints?Sure, I did. But they are “skipped” when placed into kotlin code. (see the attached video)
Kirill Shmakov [JB]
01/16/2023, 11:08 AMJan Kuchař
01/16/2023, 11:09 AMJan Kuchař
01/16/2023, 11:10 AM(lldb) br list
Current breakpoints:
1: regex = 'co.touchlab.kampkit.models.BreedRepository#<set-log>', locations = 0 (pending)
2: regex = 'co.touchlab.kampkit.models.BreedRepository#refreshBreeds\(', locations = 1, resolved = 1, hit count = 0
2.1: where = shared`kfun:co.touchlab.kampkit.models.BreedRepository#refreshBreeds(){}, address = 0x0000000104066cf4, resolved, hit count = 0
3: regex = 'co.touchlab.kampkit.models.BreedRepository#getBreeds\(', locations = 1, resolved = 1, hit count = 1
3.1: where = shared`kfun:co.touchlab.kampkit.models.BreedRepository#getBreeds(){}kotlinx.coroutines.flow.Flow<kotlin.collections.List<co.touchlab.kampkit.db.Breed>>, address = 0x00000001040657d0, resolved, hit count = 1
4: regex = 'co.touchlab.kampkit.models.BreedRepository#updateBreedFavorite\(', locations = 1, resolved = 1, hit count = 0
4.1: where = shared`kfun:co.touchlab.kampkit.models.BreedRepository#updateBreedFavorite(co.touchlab.kampkit.db.Breed){}, address = 0x0000000104066e0c, resolved, hit count = 0
5: regex = 'co.touchlab.kampkit.models.BreedRepository#isBreedListStale\(', locations = 0 (pending)
6: file = '/Users/jkuchar1/Documents/www/ivy/KaMPKit/shared/src/commonMain/kotlin/co/touchlab/kampkit/models/BreedRepository.kt', line = 33, exact_match = 0, locations = 0 (pending)
7: file = '/Users/jkuchar1/Documents/www/ivy/KaMPKit/shared/src/commonMain/kotlin/co/touchlab/kampkit/models/BreedRepository.kt', line = 34, exact_match = 0, locations = 0 (pending)
8: file = '/Users/jkuchar1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.6.4/f83eca53d0ca9fb7b4b21980e52354d443a3e354/kotlinx-coroutines-core-1.6.4-sources.jar!/commonMain/flow/Builders.kt', line = 61, exact_match = 0, locations = 0 (pending)
9: file = '/Users/jkuchar1/Documents/www/ivy/KaMPKit/shared/src/commonMain/kotlin/co/touchlab/kampkit/models/BreedRepository.kt', line = 51, exact_match = 0, locations = 0 (pending)
10: file = '/Users/jkuchar1/Documents/www/ivy/KaMPKit/shared/src/commonMain/kotlin/co/touchlab/kampkit/models/BreedRepository.kt', line = 55, exact_match = 0, locations = 0 (pending)
Jan Kuchař
01/16/2023, 11:11 AMJan Kuchař
01/16/2023, 11:13 AMJan Kuchař
01/16/2023, 11:16 AMKirill Shmakov [JB]
01/16/2023, 11:29 AMThere is nothing much to dump for the kotlin code…Could you please dump line table for the module in which KaMPKit is being compiled? I meant binary. Should be one.
Kirill Shmakov [JB]
01/16/2023, 11:29 AMJan Kuchař
01/16/2023, 11:30 AMJan Kuchař
01/16/2023, 11:30 AMKirill Shmakov [JB]
01/16/2023, 11:30 AMimage dump line-table /path/to/binary
Kirill Shmakov [JB]
01/16/2023, 11:31 AMActivity Monitor
(in case it is about simulator).
It should be LLDBFrontend process.Jan Kuchař
01/16/2023, 11:36 AM(lldb) image dump line-table /Users/jkuchar1/Library/Developer/CoreSimulator/Devices/D12F0F38-9CAF-4195-BC36-C1ADA63586C6/data/Containers/Bundle/Application/25B9DF61-1ECC-49CF-9B2C-88BB89DAB564/KaMPKitiOS.app/KaMPKitiOS
warning: No source filenames matched '/Users/jkuchar1/Library/Developer/CoreSimulator/Devices/D12F0F38-9CAF-4195-BC36-C1ADA63586C6/data/Containers/Bundle/Application/25B9DF61-1ECC-49CF-9B2C-88BB89DAB564/KaMPKitiOS.app/KaMPKitiOS'.
error: no source filenames matched any command arguments
So I tried to find “shared” binary, that should be output of the kotlin compilation process, and…
(lldb) image dump line-table shared
Line table for /Users/jkuchar1/Documents/www/ivy/KaMPKit/ios/shared in `KaMPKitiOS
: :4294967295
Jan Kuchař
01/16/2023, 11:37 AMKirill Shmakov [JB]
01/16/2023, 11:38 AMJan Kuchař
01/16/2023, 11:39 AMJan Kuchař
01/16/2023, 11:40 AMKonstantin Tskhovrebov
01/16/2023, 11:44 AMJan Kuchař
01/16/2023, 11:45 AMKirill Shmakov [JB]
01/16/2023, 11:53 AMKirill Shmakov [JB]
01/16/2023, 11:55 AMimage dump line-table KaMPKitiOS
and image dump line-table shared
?Jan Kuchař
01/16/2023, 12:10 PMJan Kuchař
01/16/2023, 12:11 PM(lldb) image dump line-table KaMPKitiOS
warning: No source filenames matched 'KaMPKitiOS'.
error: no source filenames matched any command arguments
(lldb) image dump line-table shared
Line table for /Users/jkuchar1/Documents/www/ivy/KaMPKit/ios/shared in `KaMPKitiOS
: :4294967295
Kirill Shmakov [JB]
01/16/2023, 12:34 PMtarget modules list
Shows all the binaries involved in application run. If symbols are associated with binary file, they are shown right after it.
Normally, symbols should be encountered by Spotlight, which then informs LLDB. If symbols are located in directory not indexed by Spotlight than it will not find them.Jan Kuchař
01/16/2023, 12:42 PM(lldb) image dump line-table shared
Line table for /Users/jkuchar1/Documents/www/ivy/KaMPKit/ios/shared in `KaMPKitiOS
: :4294967295
(lldb) target modules list
[ 0] AB6F8E0F-87E6-3B2A-B63F-DD3665FF9BEA 0x0000000104008000 /Users/jkuchar1/Documents/www/ivy/KaMPKit/build/ios/Debug-iphonesimulator/KaMPKitiOS.app/KaMPKitiOS
/Users/jkuchar1/Documents/www/ivy/KaMPKit/build/ios/Debug-iphonesimulator/KaMPKitiOS.app.dSYM/Contents/Resources/DWARF/KaMPKitiOS
[ 1] 487CFDEB-9B07-39BF-BFB9-970B61AEA2D1 0x00000001041bc000 /usr/lib/dyld
[ 2] D763ECDD-458A-3DC0-92D4-BF4F7A54BFBB 0x00000001040e0000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
[ 3] CA7DB440-78B7-3D9E-8BA8-D1657150F8B9 0x000000018026c000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
[ 4] EFCFC5D6-061D-3065-BD55-037C46504842 0x000000010516c000 /Users/jkuchar1/Library/Developer/CoreSimulator/Devices/D12F0F38-9CAF-4195-BC36-C1ADA63586C6/data/Containers/Bundle/Application/858F2678-A44B-49FB-BFAC-B2E97DE21BC3/KaMPKitiOS.app/Frameworks/shared.framework/shared
Jan Kuchař
01/16/2023, 12:43 PMJan Kuchař
01/16/2023, 12:50 PM(lldb) target modules list
[ 0] F50E4B9C-84E7-38A5-AA07-40638ECAC5E0 0x0000000100700000 /Users/jkuchar1/Documents/dev-mobile/ivy/KaMPKit/build/ios/Debug-iphonesimulator/KaMPKitiOS.app/KaMPKitiOS
/Users/jkuchar1/Documents/dev-mobile/ivy/KaMPKit/build/ios/Debug-iphonesimulator/KaMPKitiOS.app.dSYM/Contents/Resources/DWARF/KaMPKitiOS
[ 1] 487CFDEB-9B07-39BF-BFB9-970B61AEA2D1 0x0000000100a18000 /usr/lib/dyld
[ 2] D763ECDD-458A-3DC0-92D4-BF4F7A54BFBB 0x0000000100900000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
[ 3] CA7DB440-78B7-3D9E-8BA8-D1657150F8B9 0x000000018026c000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
[ 4] 829B57BB-E142-3A03-A1DE-8818C76B3BB3 0x00000001019c8000 /Users/jkuchar1/Library/Developer/CoreSimulator/Devices/D12F0F38-9CAF-4195-BC36-C1ADA63586C6/data/Containers/Bundle/Application/F40CD066-0136-4DA0-A600-E151B174D2AA/KaMPKitiOS.app/Frameworks/shared.framework/shared
[ 5] 98600970-6567-3882-9999-72F0A1413B46 0x000000018270a000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libsqlite3.dylib
[ 6] 4A53F446-37DF-36ED-AAF0-242BF3845FC0 0x0000000180710000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
Jan Kuchař
01/16/2023, 1:01 PMNormally, symbols should be encountered by Spotlight, which then informs LLDB. If symbols are located in directory not indexed by Spotlight than it will not find themThis is game changer. As I always exclude source code from indexing. But I have checked that it was not the case on this machine. To make sure I have moved the project out of the location. Clean built. Still could not debug. + tried to reindex relevant folders by Spotlight
Jan Kuchař
01/16/2023, 6:20 PMJan Kuchař
01/16/2023, 6:20 PMJan Kuchař
01/16/2023, 6:33 PM(lldb) target modules list
[ 0] 3FFB4878-0126-38AD-A6CC-E32D0FCEB720 0x0000000102918000 /Users/jkuchar1/Documents/dev-mobile/ivy/app/build/ios/Debug-iphonesimulator/Ivy <http://Assistant.app/Ivy|Assistant.app/Ivy> Assistant
/Users/jkuchar1/Documents/dev-mobile/ivy/app/build/ios/Debug-iphonesimulator/Ivy Assistant.app.dSYM/Contents/Resources/DWARF/Ivy Assistant
[ 1] 487CFDEB-9B07-39BF-BFB9-970B61AEA2D1 0x000000010586c000 /usr/lib/dyld
[ 2] D763ECDD-458A-3DC0-92D4-BF4F7A54BFBB 0x00000001057ac000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
[ 3] CA7DB440-78B7-3D9E-8BA8-D1657150F8B9 0x000000018026c000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib
[ 4] 2FE2D7A2-FB62-3A28-BE33-10DE18E58271 0x0000000106f84000 /Users/jkuchar1/Library/Developer/CoreSimulator/Devices/E939F22D-281E-4381-9FC0-7E9F65656051/data/Containers/Bundle/Application/255E1D84-3B4D-455C-AA99-47739078D71F/Ivy <http://Assistant.app/Frameworks/ivy.framework/ivy|Assistant.app/Frameworks/ivy.framework/ivy>
[ 5] 734A44A7-FC7C-363F-8B5F-97AF2BB7ACB7 0x00000001a1933000 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libz.1.dylib
[ 6] 371A6454-EBB8-34C7-A78F-B29CFB7339CC 0x0000000105d74000 /Users/jkuchar1/Library/Developer/CoreSimulator/Devices/E939F22D-281E-4381-9FC0-7E9F65656051/data/Containers/Bundle/Application/255E1D84-3B4D-455C-AA99-47739078D71F/Ivy <http://Assistant.app/Frameworks/SmartlookAnalytics.framework/SmartlookAnalytics|Assistant.app/Frameworks/SmartlookAnalytics.framework/SmartlookAnalytics>
[
Jan Kuchař
01/16/2023, 6:39 PMJan Kuchař
01/17/2023, 8:16 AMtarget modules list
and determine if all modules from the IDE has dSym files available? If not provide link to documentation discussing the Spotlight issue? How to update the index and how to check that my dSym files are in index available?Konstantin Tskhovrebov
01/17/2023, 9:16 AMJan Kuchař
01/17/2023, 12:54 PMMarco Righini
06/20/2023, 6:07 PMKonstantin Tskhovrebov
06/20/2023, 6:15 PMMarco Righini
06/20/2023, 6:16 PMKonstantin Tskhovrebov
06/20/2023, 6:18 PMkdoctor -v
outputMarco Righini
06/20/2023, 6:25 PM➤ Android Studio (AI-222.4459.24.2221.10121639)
Location: /Users/mss/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-2/222.4459.24.2221.10121639/Android <http://Studio.app|Studio.app>
Bundled Java: openjdk 17.0.6 2023-01-17
Kotlin Plugin: 222-1.8.20-release-AS3739.54
Kotlin Multiplatform Mobile Plugin: 0.6.0(222)-13
i Note that, by default, Android Studio uses bundled JDK for Gradle tasks execution.
Gradle JDK can be configured in Android Studio Preferences under Build, Execution, Deployment -> Build Tools -> Gradle section
Marco Righini
06/20/2023, 6:28 PMObjHeader *
After some hours we were able to see the proper types in the debugger
Evaluate expression was anyway not working
KT-59532Konstantin Tskhovrebov
06/20/2023, 6:28 PMKonstantin Tskhovrebov
06/20/2023, 6:28 PMKonstantin Tskhovrebov
06/20/2023, 6:28 PM