• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Thread ID in crash log
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Thread ID in crash log
      • From: Greg Parker <email@hidden>
References: 
 >Thread ID in crash log (From: radj <email@hidden>)
 >Re: Thread ID in crash log (From: Darren Adkinson <email@hidden>)

  • Prev by Date: garbage collection memory leak
  • Next by Date: Menu & System Preference keyboard shortcuts weirdness.
  • Previous by thread: Re: Thread ID in crash log
  • Next by thread: Re: Thread ID in crash log
  • Index(es):
    • Date
    • Thread