Why can't LLDB print view.bounds?

后端 未结 8 2096
离开以前
离开以前 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:59

    You can access it by

    p (CGRect)[view bounds]
    

    or

    p view.layer.bounds
    

    view.bounds is actually view.layer.bounds

    It seems that the type info of [UIView bounds] is not available to lldb

提交回复
热议问题