Re: How to parse a log file
Re: How to parse a log file
- Subject: Re: How to parse a log file
- From: Jens Alfke via Cocoa-dev <email@hidden>
- Date: Mon, 26 Oct 2020 15:19:52 -0700
> On Oct 26, 2020, at 3:01 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> Is it possible to determine the exact line in the source code where the error
> occurred?
The "+ nnnn" thing in each stack line is the byte offset from the start of the
function, in the machine code. Not super useful by itself …
If the symbol is simply "MyAppName + nnnn" with no function/method, then no
symbols for your code were available at the time of the crash. That means they
weren't embedded in the code, and no dSYM file was found.
Or, if the offset is unrealistically large (like hundreds of KB), then the
function/method name is bogus and is simply the nearest named symbol that the
stack-dump code could find.
I believe it's possible to use the .dSYM file that was produced with the
release build of _that exact version_ of your app, to convert those offsets
into line numbers — there's a tool called "symbolicate" or something like that.
I have never done this myself so I don't know the details.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden