Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access hidden/abbreviated stack frames in the Xcode 6 debugger (where did the stack trace abbreviation slider go?)

In Xcode

In Xcode 6 when the app crashes or when the debugger stopped at a breakpoint we get a stack trace that looks like this in the sidebar:

Xcode 6 debugger stack trace view

I can click on the different stack frames/methods to jump to the places in the code and inspect the local variables. However, several of the stack frames which belong to the framework are abbreviated.

In Xcode 4 it looked like this:

Xcode 4 debugger stack trace view

Notice that there was a slider at the bottom. Dragging it to the far right revealed all of the stack frames and made all of them selectable.

I need that functionality in Xcode 6, so my question is any of these:

  • How can I show all stack frames, even the framework ones
  • How can I access a hidden stack frame to inspect the local variables (e.g. parameters to a method call in a framework)
  • Where did the slider go and what am I supposed to do without it?
like image 491
Joachim Kurz Avatar asked Mar 04 '15 11:03

Joachim Kurz


People also ask

How to watch variables in Xcode?

When you find your variable, right-click on it and choose “Watch”. Once that's done you can continue your program as normal, and anywhere the variable is read from or written to Xcode will pause and you can use the debug navigator to step through the call stack to figure out what happened.

How do I debug in Xcode step by step?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I enable debugging in Xcode?

Enabling debugging on your device On your device, open the Settings app and select the About phone menu. Locate your device's Build number and tap it seven times. If you are running an older version of Android, you can enable USB debugging by going directly to Settings > Developer options.


1 Answers

The slider is gone. Now there is a button in the bottom left-hand corner of the debugger pane saying

Show only stack frames with debug symbols and between libraries

You have to uncheck it:

Screenshot from XCode

The buttons are described in Debug Navigator Help.

like image 55
Michał Ciuba Avatar answered Nov 15 '22 07:11

Michał Ciuba