The memory browser tool was something that I got a lot of mileage out of in Xcode 3.
When I first started using Xcode 4 I didn’t find the memory tool right away – and simply forgot about it’s existence.
While browsing through tweeted iOS Stack Overflow threads I came across this nice tip on how to use the memory manager (yes, I found something useful on Stack Overflow!).
Here’s the tip:
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:
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.
You can find more Xcode 4 tips on the Xcode 4 tutorial page.
Source: Robin Summerhill on Stack Overflow.
©2011 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.
No comments:
Post a Comment