Xcode debugger sometimes doesn't display variable values?

后端 未结 19 2214
醉话见心
醉话见心 2020-12-14 13:54

This happens to me pretty often. For example, right now I have the debugger stopped at a breakpoint in a method . . . and it isn\'t displaying any variable values at all.

19条回答
  •  青春惊慌失措
    2020-12-14 14:43

    A possible solution is to set the Optimization Level for your current target Debug scheme to none.

    Project -> Target -> Build settings -> Optimization level -> Debug (or whatever fits your project) -> None

    Source:

    https://stackoverflow.com/a/14948486/3590753

提交回复
热议问题