【问题标题】:Inspecting STL container not working right检查 STL 容器无法正常工作
【发布时间】:2016-08-31 16:50:23
【问题描述】:

自 Visual Studio 2015 更新 3 以来,我遇到的问题是 Inspector 不会首先向我显示 std::wstring 的字符串内容等信息。我必须先打开 Inspector 才能看到字符串。 我试图用this question 解决这个问题,但它不起作用。 还有std::stringstd::vector<T>等不工作,只显示{...}

屏幕截图(而不是{...},应该是L"Hello"):

【问题讨论】:

  • 您使用的是std::string 还是std::wstringL"" 用于宽字符。
  • @NathanOliver 我正在使用 std::wstring 但这个问题也发生在 std::string 上。为了澄清起见,我将其编辑为 std::wstring
  • 它在更新 2 中有效吗?
  • @RustyX 是的,在更新 2 上工作

标签: c++ visual-studio visual-studio-2015


【解决方案1】:

不知何故,Visual Studio 在 Update 3 中自我毁灭了。我不得不重新安装英语语言包并将其设置在 Visual Studio 中(之前它是德语并且没有英语选项)。现在可以了。

相关:https://connect.microsoft.com/VisualStudio/feedback/details/1676171/change-in-c-stl-container-implementation-causes-debug-visualizer-error

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-18
    • 1970-01-01
    • 1970-01-01
    • 2020-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多