// print a stacktrace NSLog(@"%@", [NSThread callStackSymbols]); // requires iOS 4
or
// print stacktrace using C functions
either set a breakpoint in Xcode to pause execution, and then type GDB commands in the console, or just look at the stack in the debug navigator tab.
Jano
source share