Skip to main content

The LLDB debugger has built-in support for symbolication, and in particular on Mac OS X, for symbolicating OS X and iOS crash logs. Unfortunately, for some reason best known to Apple, in order to function, the lldb.macosx.crashlog module requires an external script to locate dSYM files from the UUIDs listed in the crash log. Quite why there couldn’t be a default implementation of this is beyond me.

Anyway, this package really just contains a single script, named dsymForUUID (the name that the crashlog module expects). The approach taken by the script is to use Spotlight to locate the dSYM file; if it finds, rather than a single dSYM, an .xcarchive, it will scan the dSYM files in the archive to locate the correct one, and will also search for the executable.

The expectation here is that you will have Xcode archives of your releases, in which case it should Just Work.

To use lldb.macosx.crashlog after installing this script, you can do the following:

(lldb) command script import lldb.macosx.crashlog
"crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.
(lldb) crashlog /tmp/crash.log

While I haven’t tested this, you may also be able to use the dsymForUUID script with the DebugSymbols framework (part of Mac OS X) by doing something like:

defaults write com.apple.DebugSymbols DBGShellCommands -string /usr/local/bin/dsymForUUID

See the LLDB page about debug symbols on Mac OS X for more on this.

Release files for dsymForUUID 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsymForUUID 0.1.0
File Size Uploaded
dsymForUUID-0.1.0.tar.gz 2.8 kB Details

Release files / dsymForUUID-0.1.0.tar.gz

Download URL dsymForUUID-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
58cbe2b6d02edadb58523bb68e5691cc2fe8ff4c3e31c3a8cddc89edb51f0394
BLAKE2b-256 checksum
How to use checksums
d42375f72b2ffffa025ab6f399f6e1d6a88de218d6cdf5c419556c8ee1bf69f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page