我的调试模式下的数组只显示前 14 个元素,其余显示(?)问号 [英] Array in my debug mode only display first 14 elements and the rest are display (?) question mark

查看:18
本文介绍了我的调试模式下的数组只显示前 14 个元素,其余显示(?)问号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows 7 x64.

I am using windows 7 x64.

我昨天刚好注意到这个问题.

I happens to notice this problem yesterday.

在代码中,我有一个类型为 int 且大小为 500 的数组,或者实际上任何值且 X > 14

In the code, I have a array of type int and size 500, or anything actually and X > 14

我正在使用 for 循环将数字放入该数组中.并且,我在循环结束时设置了一个调试断点来查看数组中的元素.

I am using a for loop to put number into that array. And, I set a debug break point at the end of the loop to look at the element in the array.

但是,只有数组中的0-14个元素显示数字,其余显示问号?

But, only the 0-14 elements of the array show has number and the rest show question marks?

但是,如果我要打印数组,我可以看到所有数组中的值.

However, if I were to print the array, I can see values in all of them.

我使用的是 Visual Studio 2012 Express 模式.

I am using the Visual Studio 2012 Express mode.

我将调试模式设置为任何 CPU.我也试过 x64 和 x86,但我遇到了同样的问题.

I set debug mode to be Any CPU. I tried x64 and x86 also, but I have the same problem.

你知道是什么问题吗?

推荐答案

这是 Visual Studio 中的一个(愚蠢的)错误,当您使用鼠标滚动列表的调试视图时会导致该错误.要补救"它,请使用/单击菜单底部的向下箭头,而不是使用鼠标滚动.

This is a (silly) bug in Visual Studio that's caused when you scroll through the debug view of the list with your mouse. To "remedy" it, use/click the down arrow at the bottom of the menu instead of using the mouse to scroll.

编辑

见这是一个类似/相同的问题

这篇关于我的调试模式下的数组只显示前 14 个元素,其余显示(?)问号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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