• 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
Setting thread name for debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting thread name for debugger


  • Subject: Setting thread name for debugger
  • From: Matt Gough <email@hidden>
  • Date: Wed, 24 Feb 2010 12:27:58 +0000

I am trying to get my threads' names to show up in the thread pop-up in Xcode's debugger, but it isn't working

In my thread's selector, I am doing:

	NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];

	NSThread* currentThread = [NSThread currentThread];
	if ([currentThread respondsToSelector:@selector(setName:)])
		[currentThread setName:@"MyThread"];

......

but it doesn't show up.

According to
http://stackoverflow.com/questions/2057960/how-to-set-a-threadname-in-macosx
it should do (as long as I'm debugging in Xcode 3.2 on 10.6, which I am)?

What else am I missing?

Matt _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting thread name for debugger
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: ld: warning: -mlong-branch no longer needed
  • Next by Date: Re: Setting thread name for debugger
  • Previous by thread: Re: Install xcode without administator account
  • Next by thread: Re: Setting thread name for debugger
  • Index(es):
    • Date
    • Thread