How to view value of Swift “let” constant in Xcode 6 debugger
问题 When I'm stopped in the debugger in Xcode 6, how can I view the value of a local Swift constant declared with let ? If I create a brand new Swift project in Xcode 6 and add the following two lines to application(_:didFinishLaunchingWithOptions:) in the app delegate: let someConstant = 5 var someVariable = 6 …then run the app and break immediately after these lines, this is what I see in the variables view of the debugger: Why does the variable display its value, while the constant does not?