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

后端 未结 2 796
半阙折子戏
半阙折子戏 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.)

    0 讨论(0)
  • 2021-01-19 17:24

    I am still seeing this in Xcode 7.2 (using ObjC). Makes it very frustrating debugging layout code.

    The debugger doesn't show the frame as an ivar of the views and type summaries won't print it. You have to 'po foo.frame' to see it.

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