Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I expand stack traces in XCode 4

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?

like image 561
tomwhipple Avatar asked Mar 29 '11 17:03

tomwhipple


People also ask

How do I trace in xcode?

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.

How do I print a stack trace in Swift?

In Objective-C, you can print the call stack by doing the following: NSLog(@"%@", [NSThread callStackSymbols]);

What is call stack stack trace?

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.


1 Answers

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.

like image 132
BJ Homer Avatar answered Sep 21 '22 13:09

BJ Homer