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:
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:
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:
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.
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.
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.
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:
The buttons are described in Debug Navigator Help.
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