如何在XCode 4中展开堆栈跟踪

时间:2021-06-03 12:34:41

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?

XCode 4有一个非常愚蠢的特性,它通过在调用堆栈中显示第一个和最后两个条目,在调试器中“总结”堆栈跟踪。有人知道如何消除虚线并显示有用的信息吗?

1 个解决方案

#1


34  

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.

不过,这并不是简单地展示前两个和最后一个。相反,它显示堆栈的顶部和底部,以及来自应用程序的任何代码。假设您通常不关心系统框架的内部结构。您可以调整滑块以获得不同程度的细节。

#1


34  

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.

不过,这并不是简单地展示前两个和最后一个。相反,它显示堆栈的顶部和底部,以及来自应用程序的任何代码。假设您通常不关心系统框架的内部结构。您可以调整滑块以获得不同程度的细节。