Visual Studio 2013 C++: STL container's elements display in debugger

前端 未结 4 1679
小鲜肉
小鲜肉 2020-12-14 11:21

MSVS 2013 during C++ debugging (Autos and Watch windows) shows only size of STL container\'s:

MSVS 2010: \"[9](9,8,7,6,5,4,3,2,1)\"
MSVS 2013: \"{ size=9 }\"         


        
4条回答
  •  忘掉有多难
    2020-12-14 12:10

    I found one way to force MSVS 2012/2013 use autoexp.dat: set "Enable Edit And Continue" and "Enable Native Edit and Continue".
    It disables "data viewing enhancements" (natvis) for C++, and elements of std::vector (std::list, std::map, ...) become displayed on the main line of the variable (MSVS 2010 style).
    But, it still would be interesting, is it possible to modify stl.natvis to get the same display result?

提交回复
热议问题