VS2010 RC - only 100 std::map elements in debugger

浪子不回头ぞ 提交于 2019-12-03 07:00:42

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.

With VS 2010 SP1 this limit was increased to a default value of 2000 entries. This can also be modified by setting a registry key (all the standard warnings about modifying the registry apply here):

  • for x86: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\NativeDE\VisualizerMaxChildren
  • for x64: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\NativeDE\VisualizerMaxChildren

Scot Brennecke, Escalation Engineer Microsoft VC++ Support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!