At some point, I have been facing a weird behavior while debugging the swift code. When I handle a breakpoint, the variables in the debug area are empty.
For example:
If I try to print self
, for example, I'm getting the following message:
Printing description of self:
self = <Unable to determine byte size.>
Overall it looks like I'm in the release mode, however I've double checked the configuration and seems it's ok:
- Current scheme has a debug configuration.
- Optimization level is None
Xcode 6.4
UPDATE:
Debugging objc
code in the same project works well.
UPDATE 2: I had migrated to Xcode 7 and swift 2.0 and the issue was fixed, but suddenly, I've got the same problem.
I've come across a discussion about a similar issue: https://twittercommunity.com/t/xcode-7-debugger/50792