问题描述
在 Xcode 3 中调试程序时,我经常在单独的窗口中使用内存浏览器来查看缓冲区更改的内容,同时单步执行代码行.
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.这将显示内存浏览器并将内存"条目添加到调试导航器中:
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:
您也可以在 Debug 面板中右键单击一个变量,然后选择 View Memory of "*
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 中打开内存浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!