>
> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to