如何在 Xcode 4 中打开内存浏览器? [英] How do I open the memory browser in Xcode 4?

查看:21
本文介绍了如何在 Xcode 4 中打开内存浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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 中打开内存浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆