1

I have used NSObjCMessageLoggingEnabled for logging the method entry and exit at run time for an application. THe logs has been saved in /tmp/msgSends-pid. Whre pid is process ID. I want to save same logs while running an app on the iPhone device instead of running app on emulator using Xcode. Please let me know if you require more details to help me out.

NANNAV
  • 4,875
  • 4
  • 32
  • 50
Nitin
  • 269
  • 3
  • 11

1 Answers1

0

NSObjCMessageLoggingEnabled appears in Apple's technical note about Mac OS X debugging magic, but not the one about iOS debugging magic. It appears that it is unavailable on iOS.

Apparently, you can log Objective-C method entries and exits using a DTrace probe in Instruments.

Jesper
  • 7,477
  • 4
  • 40
  • 57