Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aratkevich/756563cf76ff4faeab0f973aee74452b to your computer and use it in GitHub Desktop.
Save aratkevich/756563cf76ff4faeab0f973aee74452b to your computer and use it in GitHub Desktop.
Xcode Useful LLDB commands
po [[UIApp keyWindow] recursiveDescription]
expr (void)[0x14b98920 setFrame:CGRectMake(70,40,150,25)]
po (void)[0x7852560 setClipsToBounds:NO]
po (void)[0x7852560 setFrame:(CGRect) { 13, 248, 295, 184 + 20 }]
po [0x7852560 setFrame:(CGRect) { 13, 248, 295, 184 + 37 }]
po (CGRect)[0x7852560 frame]
po (int)[ids count]
e id $btn= (id)0xakjflajdf
p (CGPoint)[$btn convertPoint:(CGPoint)[$imgView center] fromView:$imgView]
po [[UIWindow keyWindow] _autolayoutTrace]
po [0x7191be0 constraintsAffectingLayoutForAxis:0]
e (CGRect)[(UIImageView *)0x7f9c43fc5a40 frame]
expr CGRect rect; rect.origin.x=0; rect.origin.y=0;rect.size.width=375;rect.size.height=600;(void)[$imageView setFrame:rect];
e (void)[0x7f908323f8e0 setBackgroundColor:[UIColor redColor]];
e (void)[CATransaction flush]
e CGRect $rect = (CGRect)[$chatimg frame]
p $rect
(CGRect) $rect = (origin = (x = 10, y = 8), size = (width = 50, height = 50))
e $rect.origin.y = 10
(CGFloat) $5 = 10
p $rect
(CGRect) $rect = (origin = (x = 10, y = 10), size = (width = 50, height = 50))
expr sGrantDebuggerPermissionToStopExecution = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment