在使用VS2010进行调试时,发现不能查看STL中的变量的值,例如以下类型的值都看不到:
std::map<int,int> m_momentList;
std::map<int,int>::iterator m_momentIter;
需要替换VS安装目录中的autoexp.dat文件:
替换方法(以VS2010为例):
1:替换到Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\Debugger
2:重启visual studio
autoexp.dat文件下载地址:VS调试利器autoexp.dat
本文介绍了解决VS2010中无法查看STL变量值的问题,通过替换autoexp.dat文件来实现对std::map等复杂类型的支持,并提供了文件的下载链接。

3653

被折叠的 条评论
为什么被折叠?



