Xcode6のコマンドラインにてブレイク中にオブジェクトを表示する。
print-objectコマンド
1 |
(lldb) po foo_object |
UIViewの階層表示
1 |
(lldb) po [[bar view] recursiveDescription] |
出力例
1 2 3 4 5 6 7 |
<FooView: 0x1566b5020; baseClass = UICollectionViewCell; frame = (63.5 24; 112 56); animations = { backgroundColor=<CASpringAnimation: 0x17862d5c0>; }; layer = <CALayer: 0x17862d540>> | <UIView: 0x178197aa0; frame = (0 0; 112 56); gestureRecognizers = <NSArray: 0x178a48490>; layer = <CALayer: 0x17862d560>> | <UILabel: 0x1566b7810; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = <_UILabelLayer: 0x17828c6c0>> | <UIView: 0x178197b70; frame = (0 0; 0 0); layer = <CALayer: 0x17862d620>> | | <UILabel: 0x1566b7970; frame = (0 0; 0 0); text = 'ABCabc'; autoresize = W+H; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x17828c710>> | | <BarView: 0x178197c40; frame = (0 0; 0 0); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x178437860>> | | | <UIView: 0x178197d10; frame = (0 0; 0 0); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x17862d940>> |