Answer the question
In order to leave comments, you need to log in
Rendering elements of STL containers in MS Visual Studio 2013 (C++) while debugging?
When displaying a std::vector (std::list and other STL containers) in the debugger (Autos, Watch), only the size of the container is displayed:
MSVS 2010: "[9](9,8,7,6,5,4,3, 2.1)"
MSVS 2013: "{ size=9 }"
To see a specific element, you need to expand the line and scroll.
I noticed that autoexp.dat is no longer used in MSVS 2013, instead stl.natvis is used , in the scripts of which I did not find how to display all elements in a DisplayString .
How can I force all elements to be displayed without expand-a?
Is there any way to "force" MSVS 2013 to use autoexp.dat (tried deleting stl.natvis - didn't help)?
Is there any way to fix stl.natvis so that the elements are displayed on the first line?
Maybe there are some extensions for STL rendering in MSVS2010-style?
Answer the question
In order to leave comments, you need to log in
I found this solution: in the " Debugging " studio settings, enable " Enable Edit and Continue " and " Enable native Edit and Continue ". After that, the debugger starts using autoexp.dat for rendering. The project itself does not have to be with Enable Edit and Continue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question