Weird behaviour of Xcode 11 Debugger - Showing values as nil when there's a value

后端 未结 2 1030
抹茶落季
抹茶落季 2020-12-07 02:02

I just noticed weird behaviour of Xcode11, I am executing same code in Xcode 10 and Xcode 11.

See the below attached screenshot for both the versions.

I am c

2条回答
  •  独厮守ぢ
    2020-12-07 02:26

    I am using an answer since for the comment would be too long, but would be more appropriate.

    I am currently (catalina, xcode 11.1) facing many similar issues, beside a general slow down of the debugger.

    To be sure anyway:

    • check that in the target build settings the compile time optimization is disabled for debug: Optimization Level -O0 (the var may be optimized away)
    • this solved some of my issues as well (disabling the diagnostic made lldb a bit faster and solved issues with p/po and collecting the stacktrace): Xcode 11 extremely slow - A known problem?

提交回复
热议问题