Why can't LLDB print view.bounds?

后端 未结 8 2089
离开以前
离开以前 2020-12-23 16:02

Things like this drive me crazy when debugging:

(lldb) p self.bounds
error: unsupported expression with unknown type
error: unsupported expression with unkno         


        
8条回答
  •  时光取名叫无心
    2020-12-23 16:46

    With Xcode 6.3, we can import UIKit and then print the frame or bound of view

    expr @import UIKit
    p self.view.bounds
    

提交回复
热议问题