Skip navigation.
 
mlMessaging Nil
FROM : Bill Bumgarner
DATE : Thu Jan 03 18:02:09 2008

If anyone is interested, I wrote up a set of weblog posts documenting 
a couple of different non-gdb methods of figuring out what methods are 
being invoked on nil (which, regardless of your opinion of "nil eats 
messages" as a feature or weakness of the language, unexpectedly nil 
objects can be a major pain in the butt to debug).

A hack to log method invocations:

http://www.friday.com/bbum/2008/01/01/objective-c-a-hack-to-log-all-methods/

Expanding the hack into a runtime centric way of logging messages to 
nil:

http://www.friday.com/bbum/2008/01/02/objective-c-logging-messages-to-nil/

Using dtrace to analyze messages to nil:

http://www.friday.com/bbum/2008/01/03/objective-c-using-dtrace-to-trace-messages-to-nil/

b.bum

Related mailsAuthorDate
No related mails found.