Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging using the PO command

Why does this debugger command works:

(lldb) **po indexPath**
<NSIndexPath: 0x1c0711b0> {length = 2, path = 3 - 0}

but this does not:

(lldb) **po [indexPath section]**
[no Objective-C description available]

?

like image 523
AlexR Avatar asked Jan 20 '26 00:01

AlexR


1 Answers

for primitive types you have to use 'p' , 'po' is for objects

p = print

po = print object

so for example

(lldb) p [indexPath section]
like image 155
Manu Avatar answered Jan 22 '26 15:01

Manu