Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the numbers in brackets next to my app name in the Xcode console mean?

Tags:

xcode

ios

What do the numbers in brackets mean?

2012-12-01 10:14:25.769 MyApp[3714:907] -[MyAppDelegate applicationDidEnterBackground:]
2012-12-01 10:14:46.058 MyApp[3714:490b] *** -[UIProgressView respondsToSelector:]: message sent to deallocated instance 0x2084a050

The 3714 and 907. Is one the process ID? What's the other? I'm trying to figure out why all the messages ended in 907 until that error on the last line which ended in 490b.

like image 249
Andrew Avatar asked Feb 19 '23 07:02

Andrew


1 Answers

The 3714 is the Unix process ID: the value returned by getpid(), formatted with %d.

The 907 or 490b is a thread ID: the value returned by pthread_mach_thread_np(pthread_self()), formatted with %x.

like image 120
rob mayoff Avatar answered May 01 '23 00:05

rob mayoff