【问题标题】:Cannot debug in Qt Creator - no such value无法在 Qt Creator 中调试 - 没有这样的值
【发布时间】:2022-12-22 01:20:38
【问题描述】:

我在 ubuntu 22.04.01 中使用 QtCreator 6.0.2。

当我尝试调试时,每当我将鼠标悬停在一个变量上时,我都无法读取实际值。相反,我看到 <no such value>。

我读了这个问题:Debugging Qt app with Qt Creator: <no such value>,它提供了一些见解。但我认为答案太旧了。我没有重新编译 gdb,但是当我运行 gdb --configure 时,我可以看到它是使用 python 脚本支持构建的:

此 GDB 配置如下:配置
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
--with-auto-load-dir=$debugdir:$datadir/自动加载
--with-auto-load-safe-path=$debugdir:$datadir/自动加载
--with-外籍人士
--with-gdb-datadir=/usr/share/gdb (可重定位)
--with-jit-reader-dir=/usr/lib/gdb(可重定位)
--without-libunwind-ia64
--with-lzma
--with-babeltrace
--with-intel-pt
--with-mpfr
--with-xxhash
--with-python=/usr (可重定位)
--with-python-libdir=/usr/lib(可重定位)
--with-debuginfod
--没有诡计
--enable-source-highlight
--with-separate-debug-dir=/usr/lib/debug(可重定位)
--with-system-gdbinit=/etc/gdb/gdbinit
--with-system-gdbinit-dir=/etc/gdb/gdbinit.d

还有什么可能导致这个?我在哪里可以获得更多信息如何解决这个问题?日志?在哪里?

【问题讨论】:

    标签: linux qt gdb


    【解决方案1】:

    我需要像这样构建一个 FULL_DEBUG 构建(我正在使用 cmake):

    cmake ../trunk -DCMAKE_BUILD_TYPE=FULL_DEBUG
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-27
      相关资源
      最近更新 更多