All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
visual c++中调试窗口(Memory窗口)

Writer: qq Article type: Programming skills(编程技巧) Time: 2014/7/9 22:40:44 Browse times: 326 Comment times: 0

visual c++中调试窗口(Memory窗口)


Head photo

Go homepage
Upload pictures
Write articles

visual c++中调试窗口(Memory窗口)

Memory窗口
Memory窗口用于显示某个地址开始处的内存信息,默认地址为0x00000000。在调试程序时,使用Watch窗口只能查看一个变量的值,而使用Memory窗口可以查看多个变量的值,例如查看数组元素的值。Memory窗口如图1所示。

图1 Memory窗口
下面笔者以一个具体实例介绍如何使用Memory窗口。
(1)编写一个函数,在该函数中设置一个断点,如图2所示。

图2 代码编辑窗口
(2)运行程序,使程序执行“Add”函数。
(3)按Alt+6组合键打开Memory窗口,在编辑框中输入“array”,按Enter键查看内存信息,如图3所示。

图3 数组内存状态窗口





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.