user1746779
user1746779

Reputation: 1

Searching for a way to add logs on the top of each function - something like trace

I found that if I added NSObjCMessageLoggingEnabled=YES to the argument, xCode create for me in run time a file with the methods trace. For example: z: appdelegete:didfinishlaunching z: addElement ...

I don't find the file.

Upvotes: 0

Views: 103

Answers (1)

Parag Bafna
Parag Bafna

Reputation: 22930

From Technical Note TN2124

If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-pid/.

Upvotes: 1

Related Questions