Re: Thread ID in crash log
Re: Thread ID in crash log
- Subject: Re: Thread ID in crash log
- From: radj <email@hidden>
- Date: Thu, 18 Dec 2008 08:22:16 +0800
>
> Check out CrashReporter Technical Note TN2123 (google "TN2123") - the
> advice there (~p.8) is to look at the symbolic names within the backtrace in
> order to identify which thread is which.
Woops. Looks like I wasn't stating what I needed clearly.
Yes, looking at the stack trace can help me identify which is which but what
if the threads all look the same? ex: I've launched several threads of the
same method. But that's another question.
What I needed is:
I have my own debug log, my program writes to a file. How do I print out the
current thread's number from within my code that will match with crash log's
thread numbers? :D
ex:
fwrite(filePointer, "[thread:%d] a trivial sample debug log line showing the
thread number\n", ________ ); // what should go in the blank?
Cheers,
radj
_______________________________________________
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