问题描述
在Xcode 3中调试程序时,我经常在单独的窗口中使用Memory Browser来查看缓冲区更改的内容,同时我逐步执行代码行。
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.
我现在开始使用Xcode 4,我想知道如何打开内存浏览器。我在UI中找不到类似的东西。任何人都可以提供帮助吗?
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?
推荐答案
在调试时选择产品>调试>查看内存或按Shift-Cmd-M。这将显示内存浏览器并在Debug导航器中添加Memory条目:
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.
这篇关于如何在Xcode 4中打开内存浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!