XCode 4 has a really stupid feature that "summarizes" stack traces in the debugger by showing the first and last two items in the call stack. Does anyone know how to eliminate the dotted line and show the useful information?
Use the bt command in (lldb). Once paused or after a crash, just type bt into the debug console. It will print the full stack trace. Awesome tip for tracking down a constraint issue after setting the symbolic breakpoint.
In Objective-C, you can print the call stack by doing the following: NSLog(@"%@", [NSThread callStackSymbols]);
a call stack is a stack data structure that stores information about the active subroutines of a computer program. A stack trace is a report of the active stack frames at a certain point in time during the execution of a program.
If you want to see the entire stack trace, drag the slider at the bottom left of the debug navigator (below the stack traces) all the way to the right.
It's not simply showing the first two and the last one, though. Rather, it's showing the top and bottom of the stack, as well as any code that comes from your application. The assumption is that you often don't care about the internals of system frameworks. You can adjust the slider to get varying levels of detail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With