Wednesday 15 April 2015

ios - Is it possible to trace changes to a UIView's frame? -


For debugging purposes, is it possible to view the frame as a program run without stopping the debugging session?

You can use the LLDB breakpoint command to do this.

  (lldb) Br Set -S Setframe: Breakpoint 4: 133 places. (LLDB) br command add 4 Enter your debugger command (A) to finish 'Type' to complete & Gt; E (Zero) NSLog (Frame Change for @ @ @: ", $ RDI) & gt; Continue & gt;   

This code is x86_64 register rdi The correct registration is done in

It sets the LLDB evaluation order when the breakpoint is set on any call from the selector setFrame: and when a breakpoint is triggered. The breakpoint command then restarts the execution after printing the frame.

This is the name of any of your app Will output the frame changes in Shy. Leave Continue command if you want to enter the frame changing time debugger.


No comments:

Post a Comment