【问题标题】:How to see C++ shared_ptr contents in Linux when debugging using Eclipse?使用 Eclipse 调试时如何在 Linux 中查看 C++ shared_ptr 内容?
【发布时间】:2017-12-24 16:26:15
【问题描述】:

我正在使用 Eclipse Luna 在 Ubuntu 上调试 C++ 程序,所有智能指针变量(如 shared_ptr)都没有显示内容,它们只显示引用的数量和地址,这与 Windows 上的 VS 不同我可以看到托管对象的内容(就像任何常规的原始指针 *ptr 一样)。

我如何在 Eclipse 中也能做到这一点?

【问题讨论】:

    标签: c++ linux eclipse debugging


    【解决方案1】:

    我没有评论的声誉,但是。

    此问题在 bugs.eclipse.org 中报告为错误 https://bugs.eclipse.org/bugs/show_bug.cgi?id=462539

    考虑到 luna 是一个比较旧的版本,我认为升级是一个有效的选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-12
      • 1970-01-01
      • 1970-01-01
      • 2021-11-17
      • 1970-01-01
      • 2012-12-20
      相关资源
      最近更新 更多