Is there a way to Track/trace and log all the methods, by Class and Method name, during a debug session?
Dave Dribin covers precisely this in his article Tracing Objective-C messages.
The part you are after is probably this:
If you set the
NSObjCMessageLoggingEnabled
environment variable toYES
, the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-<pid>.
Xtrace (https://github.com/johnno1962/Xtrace) has many features and works well for tracing Objective-C. One needs source access to their project, like you appear to have, and can emit messages on entry/exit, like you appear to want.
- Debug-time configuration - can hard-code or configure tracing while debugging
- Uncomplicated integration - one .mm and one .h
- NSRegularExpression matching - classes, methods, types