I cannot debug local variables using Swift

I am testing Swift with Xcode 6.1.1. and I downloaded the UICatalog project from Apple. I can properly debug Objective-C in other projects, and Swift can debug global objects, but not LOCAL.

Are there any special configurations in Xcode? Why can't I debug it?

+4
source share
1 answer

In the project build settings, change Optimization Levelthe section Swift Compiler - Code Generationfor Debugto None [-Onone].

+8
source

Source: https://habr.com/ru/post/1569399/


All Articles