What changed in xcode7 debugger that I can no longer view variables with “po” / Swift

后端 未结 2 800
半阙折子戏
半阙折子戏 2021-01-19 16:29

ok what changed in xCode7 / Swift that I can no longer use \"po frame\" to view the contents of a CGRect anylonger? The print statment works just fine in the code. How come

2条回答
  •  旧巷少年郎
    2021-01-19 16:59

    This is a bug in Xcode 7.1. It is fixed in the current 7.2 beta, and will be fixed in the final. The bug is that the types for Structs imported from C/ObjC modules into Swift are not available to the debugger (and in turn it won't report variables whose types are unavailable.)

提交回复
热议问题