I was browsing the web looking up some tips for this program im working on and i came across this which i believe will help solve some of my problems while coding iphone applications. You ever have one of those bugs that you had no idea where to even begin to look where the bug could be happening cause the compiler just dosent tell you. Well alas my friends this tips for you then, what i found out today is that you can use
Code:
//at the beginning of any method
NSLog(@"Entering:%s",__PRETTY_FUNCTION__);
//and this at the end of any method
NSLog(@"Leaving:%s",__PRETTY_FUNCTION__);
and this will tell you exactly what class and what function the program is accessing, for instance the output would be
Code:
2010-08-23 16:52:34.820 MYAPP[5890:207] Entering -[MyClass MyFunctionName:]
now that i found this my entire debugging process will be littered with this little bad boys, might not be too efficant as a way to debug but any little help counts right people