Technical Q&A QA1947

Xcode debugger does not display the value of my variables.

Q:  The debugger doesn't show my variables' value. How can I view them?

A: The debugger may not show the value of your variables for any of the following reasons:

Figure 1  Optimization level set to None for the Debug configuration.
Figure 2  Swift Optimization level set to None for the Debug configuration.
Figure 3  Build Configuration set to Debug for the Run action.


Document Revision History


DateNotes
2017-02-09

New document that describes causes that can prevent the debugger from showing the value of your variables.