Visual Studio 2013上显示C ++最大列表大小 [英] C++ maximum list size display on Visual Studio 2013
本文介绍了Visual Studio 2013上显示C ++最大列表大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不确定是否有人遇到此调试器限制问题。当我尝试在visual studio 2013社区
版本的手表窗口上检查大于2000个元素的标准列表时,IDE将其剪切为2000个元素&不要让我看到这一点。是否有任何配置可以将限制增加到超过2000默认限制,以便我可以在监视窗口中查看非常大的标准列表?我需要它来调试
项目。 -Thanks
推荐答案
这可能是Visual Studio本身的一个硬限制。 STL的natvis文件不提供任何类型的最大大小。这就是文件中的内容:
This is probably a hard limit in Visual Studio itself. The natvis file for the STL doesn't give any kind of maximum size. This is literally what is in the file:
<Type Name="std::list<*>" Priority="MediumLow">
<DisplayString>{{ size={_Mysize} }}</DisplayString>
<Expand>
<LinkedListItems>
<Size>_Mysize</Size>
<HeadPointer>_Myhead->_Next</HeadPointer>
<NextPointer>_Next</NextPointer>
<ValueNode>_Myval</ValueNode>
</LinkedListItems>
</Expand>
</Type>
我可以看到调试器选项中没有设置可以更改此设置。因此,如果有任何选项可以改变这一点,我无法在明显的地方找到它们。
There are also no settings in the debugger options that I can see that change this. So if there are any options to change this, I can't find them in the obvious places.
这篇关于Visual Studio 2013上显示C ++最大列表大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文