visualise step by step execution in Xcode

suppose I've written a piece of code in editor area which has a loop. how can i see step by step execution? i want to see stack and all values assigned to the variables and the line which is being executed. https://drive.google.com/file/d/1mZ4EMBFZSSa_E3Gx-Fidma_QrB-_h8Jk/view?usp=sharing

Replies

When debugging:

  • The line about to be executed is highlighted in green in the main editor

  • The stack backtrace of each thread is shown by the debug navigator (View > Navigator > Show Debug Navigator)

  • Variables are shown in the debug area (View > Debug Area > Show Debug Area) — You can use the controls at bottom right of the debug area to show and hide the variables view and console area independently.

  • You can step through code using the buttons in the debug bar (or the equivalent commands in the Debug menu)

The Xcode help talks about this in depth; choose Xcode Help from the Help menu, or visit this URL in your browser.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"