Jan Skrasek
11/02/2023, 3:41 PMkpgalligan
11/02/2023, 8:59 PMJan Skrasek
11/02/2023, 9:02 PMTimofey Solonin
11/03/2023, 7:39 PMtarget.source-map
setting in lldb.
Here is the general idea to make this work:
• Make sure the debugger picks up the DWARF from your Kotlin binaries. If you are shipping a static library the DWARF will be embedded in the library itself and if you are shipping a dynamic library it will be located in the dSYM bundle.
• Find the absolute paths embedded in DWARF
• Get the sources that were used to build the binary and map the paths using settings set target.source-map
Some other lldb settings that could some in handy are target.debug-file-search-paths
and symbols.enable-external-lookup
. You can look up the documentation for these using lldb's apropos
command.