在Visual C ++中查看多维数组值调试 [英] view multi-dimensional array values debugging in Visual C++

查看:87
本文介绍了在Visual C ++中查看多维数组值调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调试一些C ++代码,但调试时看不到多维数组中的值

I'm trying to debug some C++ code but I can't see the values in a multi-dimensional array while debugging

我有一个动态分配的指针(双** A).

I have a dynamically allocated pointer (double **A).

当我尝试观察此数组的值时,我只是得到第一个值,看不到其余值.

When I try to watch the value of this array I just get the first value, I can't see the remaining values.

有什么想法吗?

TIA

推荐答案

在VS中查看大型数据数组的最简单方法是使用内存窗口而不是监视"窗口或自动"或本地"窗口.只需将指针值拖到内存窗口的地址框中即可.

The simplest way to see large data arrays in VS is to use a memory window instead of a Watch window or the Autos or Locals window. Just drag your pointer value to the memory window's address box.

这篇关于在Visual C ++中查看多维数组值调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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