Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode memory addresses were in hex but now are in decimal. How do I change back to hex?

Tags:

xcode

Using Xcode 4.2. When viewing memory in the memory browser, the memory addresses in the leftmost column (called "Line Numbers" in the Editor menu) are showing up as decimal numbers. Earlier today, they were in hex. I much prefer hex but I can't figure out how to change the format from decimal back to hex.

The individual variables, shown in the Variables View, have addresses in hex. The contents of memory are also shown in hex.

Edit: Screenshot: The red rectangle is around the decimal addresses. I have since found that clicking anywhere in the column with the red rect toggles between hex and decimal addresses.

Thx to CocoaFu for helping me figure this out.
http://imgur.com/8D4xg.

like image 785
onaquest Avatar asked Oct 09 '22 18:10

onaquest


1 Answers

Not sure how you are trying but the first clue is "Line Numbers" that you are not viewing memory. I created:

int *a = malloc(500);
a[0] = 3;

right (control) clicked on the "a" in the locals variable display, selected

View Memory of "*a"

Click in the red rect to change between different address bases (decimal/hexadecimal)--thanks to @onquest

enter image description here

like image 93
zaph Avatar answered Oct 13 '22 10:10

zaph