Giter Club home page Giter Club logo

dsymforuuid's Introduction

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.

dsymforuuid's People

Contributors

al45tair avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.