Float variables assigned value from line above

前端 未结 1 922
无人及你
无人及你 2020-12-21 15:24

I have an iOS App that is doing things that don\'t quite make sense to me. I have several float variables defined in my interface that are being assigned incorrectly.

相关标签:
1条回答
  • 2020-12-21 15:47

    There are numerous reports that when inspecting ivars from LLDB they seem wrong (myself had the same problem many times). More specifically they seem to be shifted. That said, it only seems to be a bug in the implementation of XCode's inspector. If you want to be sure about the values you can either po _yourivar in the debugger console, use GDB or NSLog them. There is also a similar question here: GDB Vs LLDB debuggers

    0 讨论(0)
提交回复
热议问题