What's the difference between “p” and “po” in Xcode's LLDB debugger?

后端 未结 9 1459
无人及你
无人及你 2021-02-04 12:27

Example. I write the following string in my old project and a new, clear one:

UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation;
         


        
9条回答
  •  粉色の甜心
    2021-02-04 12:51

    p = print

    po = print object

    p prints value of primitive variable or value of a reference

    po try to call -description for that object and print returned string

提交回复
热议问题