在KDevelop中调试嵌套的STL容器

时间:2014-07-14 18:25:21

标签: c++ debugging gdb kdevelop

在KDevelop中,当我调试一个向量时,我可以看到它的内容。这是

的结果
vector<int> v = {1,2,3};

enter image description here

但调试矢量&lt;矢量&lt; int&gt; &GT;没有显示其内容。这是

的结果
vector< vector < int > > v = {{1,2,3}, {4,5,6}};

enter image description here

如何调试嵌套的STL容器?

1 个答案:

答案 0 :(得分:2)

这是a known bug in KDevelop,已在版本4.7.0中修复。