Often when debugging, it\'s important for me to know what methods of a class are being called in what order. The naive solution (that I\'ve been using thus far) is to pop an
All Objective-C method calls go through one of the C runtime calls objc_msgSend
, objc_msgSend_stret
, objc_msgSendSuper
and objc_msgSendSuper_stret
per the 'Sending Messages' section of the Objective-C Runtime Reference. So you should be able to trap those, and give them actions to log the relevant parts of the first two parameters (it's target and selector for the normal sends, a struct describing the superclass that contains both the target and the class type for super calls).