Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't debug local variables with Swift

Tags:

swift

xcode6

I'm testing Swift with Xcode 6.1.1. and i have loaded UICatalog project from Apple. I can debug normally with Objective C in another projects, and with Swift can debug global objects but not LOCAL variables.

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

like image 846
Miguel Avatar asked Feb 11 '23 06:02

Miguel


1 Answers

In the project build settings change the Optimization Level under Swift Compiler - Code Generation for Debug configuration to None [-Onone].

like image 154
Raptor T Wiked Avatar answered Feb 13 '23 20:02

Raptor T Wiked