Setting thread name for debugger
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