I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently.
In particular, I have two questions:
- is there a way to easily NSLog the current method's name / line number?
- is there a way to "disable" all NSLogs easily before compiling for release code?
Disabling all NSLogs, for somebody allergic to MACROS, here is something that you can compile too:
And, use it almost like NSLog:
From this blog: http://whackylabs.com/rants/?p=134