This can also be done with code when your implementation file grows. I found this very useful for tracking and debugging through tedious code. NSLog (@ "\ nFunction:% s \ t \ tLine:% d \ n \ n", func , LINE );
For example, in some class MyClass:
- (void) someFunction { NSLog(@"\nFunction: %s\tLine: %d\n\n",__func__, __LINE__); }
==== Conclusion ===
Function: -[myClass someFunction] Line: 175
Luffy Apr 09 '13 at 7:21 2013-04-09 07:21
source share