Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open the memory browser in Xcode 4?

When debugging programs in Xcode 3, I often used the Memory Browser in a seperate window to view the contents of a buffer change while I step through the lines of code.

As I now started using Xcode 4, I wonder how to open a Memory Browser. I can't find anything like that in the UI. Can anybody provide help?

like image 429
Tafkadasoh Avatar asked Nov 08 '11 14:11

Tafkadasoh


2 Answers

Select Product > Debug > View Memory while debugging or press Shift-Cmd-M. This will display the memory browser and add an entry for 'Memory' into the Debug navigator:

enter image description here

You can also right-click on a variable in the Debug panel and select View Memory of "*<variable name>" to jump straight to displaying memory for that variable.

enter image description here

like image 87
Robin Summerhill Avatar answered Sep 30 '22 15:09

Robin Summerhill


I open it when i debug. I place a breakpoint, right click on an variable -> View In Memory "..." .

It will open in a tab, but you can drag the tab out of the Xcode tab-bar.

like image 28
Mats Stijlaart Avatar answered Sep 30 '22 15:09

Mats Stijlaart