So far I have only been able to find one resource that reference the "Line Offsets"
http://stackoverflow.com/questions/7733019/xcode-memory-addresses-were-in-hex-but-now-are-in-decimal-how-do-i-change-back
The apple documentation for Memory Browser only talks about navigation, and not the views that are up
https://developer.apple.com/library/ios/recipes/xcode_help-debugger/articles/viewing_memory.html
So my question is, what is the "Line Offsets" column on the left of the Memory Browser?
I can't make heads or tails of what those numbers mean
I have also made an SO question:
Does anybody know what these numbers could be?
I am finding one of these "Line Offsets" being referenced by one of my pointers, and it actually causes a bus error, so I'm trying to figure out how this could have happened
The column on the left, the one that toggles between hex and decimal when you click it, is the address of the memory being displayed. Consider the following pseudo screen shot.
600000001550 F0290000 01000000 00201E00 00600000 ................
600000001560 80040A00 00600000 00000000 00000000 ................
600000001550 is the address of the byte whose value is F0, 600000001551 is the address of the bytes whose value is 29, and so on.
The reason why you’ve not seen a lot of discussion of this is that:
to folks who are used to assembly-level debugging this is really obvious
folk who are not used to assembly-level debugging rarely look at a raw memory view
I am finding one of these "Line Offsets" being referenced by one of my pointers, and it actually causes a bus error, so I'm trying to figure out how this could have happened
It’s very likely you have some sort of memory management problem. My standard advice for debugging those is:
use ARC (or Swift) everywhere
enable all the compiler warnings and fix anything that it complains about
fix any issues reported by the static analyser
run the app with zombies enabled
run the app with address sanitiser enabled (a new feature in Xcode 7)
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"