Why can't LLDB print view.bounds?

后端 未结 8 2085
离开以前
离开以前 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 17:02

    Try with following expression,

    p self.view.bounds.size.width
    

    or use,

    po self.view
    

    p - Print is only uses to print normal/simple values while, po - Print Object works same as NSLog to print value of an object

提交回复
热议问题