Xcode debugger LLDB
LLDB is a dynamic debugger for Xcode: xcode supports directives:
-
Print, p: print
-
Po: Print object:
-
Read memory:
Format: x is hexadecimal, f is floating point, d is decimal
Byte size: B :byte 1 byte, H :half word 2 bytes W: Word 4 bytes, G :giant word 8 bytes
-
Memory Read/Data format Number of bytes Memory address
-
X/Data format Number of bytes Memory address
-
X: Reads memory
-
3: outputs 3 bytes
-
X: output hexadecimal
-
G: None of the strings point to 16 bytes
-
A peek into the underlying implementation of iOS — the nature of OC objects (I) — Digging gold
A peek into the underlying implementation of iOS — the nature of OC objects (II) — Digging gold
Look at the underlying implementation of iOS –OC object classification: instance, class, META -calss object ISA and Superclass – nuggets
A peek into the underlying implementation of iOS — the essence of KVO/KVC — nuggets