VS2013内存中的内存1、内存2、内存3、内存4 window

Memory 1, Memory 2, Memory 3, Memory 4 in VS2013 Memory window

为什么VS2013中有四个内存windows?他们是否偶然提到 RAM 插槽? Documentation does not explain why there is more than one, nor how information in them is different.

To open a Memory window
1. Start debugging, if you are not already in debug mode.
2. In the Debug menu, point to Windows. Then, point to Memory and then click memory 1, Memory 2, Memory 3, or Memory 4. (Lower-level editions of Visual Studio have only a single Memory window. If you are using one of those editions, just click Memory.)

四个记忆windows是为了方便大家。它使您可以跟踪最多四个偏移量的内存内容。当您在构建另一个数据结构时遍历一个数据结构时,这会派上用场:不必每次都输入新的偏移量来回移动,您可以保持两个 windows 打开。

这类似于 "Find in Files" window,后者提供以 "Find Results 1" 或 "Find Results 2" 显示结果。

查找结果 1 和查找结果 2 的原因相同 - 您可以在每个中查看不同的内容。

在调试方面,内存的物理位置一般是隐藏的(在虚拟内存中很可能还在磁盘上);但是将不同的 windows 指向不同的事物可能会非常有用。一个示例可能是您正在转换的源结构和目标结构,以便您可以验证它是否正常工作。