mrhappyasthma / HappyDebugging

A collection of LLDB macros to make debugging in Xcode a bit more enjoyable.
MIT License
3 stars 0 forks source link

Print out values for primitives in `ivars` command. #9

Open mrhappyasthma opened 6 years ago

mrhappyasthma commented 6 years ago

Right now the script won't print out the values of primitives. This would be a great addition.

E.g.

Current:

(bool) _someBool,
(int) _someInt

Desired:

(bool) _someBool -> YES,
(int) _someInt -> 10,
mrhappyasthma commented 6 years ago

This post seems to have the correct way to call object_getIvar() for primitive return values: https://stackoverflow.com/a/46798842/1366973

mrhappyasthma commented 6 years ago

Even more details available here: https://stackoverflow.com/a/13832447/1366973