Xcode's 'po' fails to identify the variable I wish to study. Wny?

前端 未结 2 915
生来不讨喜
生来不讨喜 2021-01-01 21:56

Environment: Xcode 6 Beta 4
I\'m attempting to merely look into a text value using the debugger. However the debugger fails to identify the static variable (via \'Let

2条回答
  •  灰色年华
    2021-01-01 22:22

    This is a problem I also encountered, and I think it is a bug in the debugger. If you do not use ANY variables declared with 'let', the po command will work. This is off course not what you want so I filed a bug with Apple for this issue.

    I think you should just hope it is fixed in the next beta (file a bug too please, as number of filed bugs will influence Apple's priority in fixing them). In the meantime, go with Amitays workaround.

提交回复
热议问题