Skip to content

Instantly share code, notes, and snippets.

@hezi
Created June 4, 2012 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hezi/2866995 to your computer and use it in GitHub Desktop.
Save hezi/2866995 to your computer and use it in GitHub Desktop.
Log all messages in Objective-C
#import <objc/runtime.h>
(void)instrumentObjcMessageSends(YES); //to start
(void)instrumentObjcMessageSends(NO); //to stop
// print result: tail -100f /tmp/msgSends-XXXX
// Source: http://bonto.ch/blog/2012/05/30/log-all-messages-in-objective-c/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment