cocoa touch - What are the numbers in the square brackets in NSLog() output? -


What's the content between the [] in the log message below? I get it in my iPhone app, and I do not know where the message comes from. My first estimate will be a line number, but who will this file be?

  2010-10-19 08: 56: 12.006 Encore [376: 679]  

The first number is the process ID, the second is the Mac port of the logging thread. A desktop example:

  2010-10-19 17: 37: 13.189 NC_Init [28617: AF] NC & Lt; CFNotificationCenter 0x10010d170 [0x7fff70d96f20] & gt; - Default & lt; CFNotificationCenter 0x10010d2a0 [0x7fff70d96f20] & gt; (GDB) current status in thread 1 "Wait" Mac port # 0xa0f (GDB Port # 0x4203) Frame 0: Main () is on NC_IITM: 10 Pathrad ID: 0x7fff70ebfc20 System-wide Unique thread ID: 0x167b49 Remittance queue name: "Com.apple.main-thread" sending queue flags: 0x0 total user time: 13232000 total system time: 16099000 enhanced CPU usage Percentage: 0 Scheduling policy effect: 0x1 runs state: 0x3 (waiting) Flags: 0x0 seconds number This thread Soya: 0 current priority : 31 Maximum priority: 63 Suspension number: 0. (GDB) P / X (int) mach_thread_self () $ 1 = 0xa0f  

Note that how 0xa0f is reported is the Mach port of the thread In form of.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -