Track all ObjC method calls?

后端 未结 5 1401
一整个雨季
一整个雨季 2020-11-28 11:31

Sometimes when looking at someone else\'s large Objective-C program, it is hard to know where to begin.

In such situations, I think it would be helpful to log every

5条回答
  •  眼角桃花
    2020-11-28 12:03

    You can set the environment variable NSObjCMessageLoggingEnabled to YES. This will write a log of all message sends in the folder /tmp/msgSends-xxx.

提交回复
热议问题