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.
Asked
Active
Viewed 891 times
1
1 Answers
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
-
But dtrace hasn't been ported to iOS has it? – trojanfoe Feb 14 '13 at 13:19
-
Nope, but you can use Instruments on iOS devices via USB or Wi-Fi. – Jesper Feb 14 '13 at 13:21