Awesome LLDB Trick

Ever get tired of trying to inspect CGRect values in LLDB?

(lldb) po self.view.bounds
error: property 'bounds' not found on object of type 'UIView *'
error: 1 errors parsing expression

I know, so annoying, right? Fortunately Craig Hockenberry has found a great trick in Xcode to make inspecting UIKit structures easier.

(lldb) expr @import UIKit
(lldb) po self.view.bounds
(origin = (x = 0, y = 0), size = (width = 375, height = 667))
(origin = (x = 0, y = 0), size = (width = 375, height = 667))

Read his article for all the details.