VS2010 RC - 在调试器中只有100个std :: map元素 [英] VS2010 RC - only 100 std::map elements in debugger
问题描述
在VS 2010 RC中调试我的应用程序时,我有一个小问题,当我想要看到std :: map容器的所有元素。
I have a small problem during debugging my App in VS 2010 RC when I want to see all the elements of std::map container.
当调试器到达断点,我想检查元素检查器中的地图的值(在本地化窗口和弹出窗口中,鼠标悬停在变量名称之后),我滚动的元素列表停止100元素和我不能下一个元素。地图包含超过200个元素(地图的计数器参数正确显示此元素),但我无法在元素检查器中查看所有元素。
When debugger reaches the breakpoint and I want to check the values of the map in element inspector (in 'Locals' windows and in pop-up windows after hovering the variable name with mouse as well) and I'm scrolling down the list of the elements it stops on the 100 element and I can't next elements. The map contains more than 200 elements (map's counter parameter shows this properly) but I can't view them all in the element inspector.
问题出现在最简单 std :: map
The problem appears even in the most simple std::map<int, int>
filled with 200 int values.
也许这是一个问题设置,但我已经尝试了很多组合,它仍然不工作。
Maybe this is a problem with settings, but I've tried many combinations of them and it still does not work. Maybe somebody have some ideas how to solve this.
提前感谢您的帮助。
推荐答案
这些信息的显示由autoexp.dat文件(通常位于Program Files *\Microsoft Visual Studio *\Common7\Packages\Debugger)指示。
看来,Microsoft向#tree运算符添加了100个元素的硬编码限制,以避免在树中出现循环的情况下冻结Visual Studio。
The display of such information is directed by the autoexp.dat file (usually located in "Program Files*"\"Microsoft Visual Studio*"\Common7\Packages\Debugger). It seems that Microsoft added a hard coded limitation of 100 elements to the #tree operator, in order to avoid freezing Visual Studio in case of loops in the tree.
这篇关于VS2010 RC - 在调试器中只有100个std :: map元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!