简体   繁体   English

无法在 Qt Creator 中调试 - 没有这样的值

[英]Cannot debug in Qt Creator - no such value

I'm using QtCreator 6.0.2, in ubuntu 22.04.01.我在 ubuntu 22.04.01 中使用 QtCreator 6.0.2。

When I try to debug, whenever I hover over a variable I cannot read the actual value.当我尝试调试时,每当我将鼠标悬停在一个变量上时,我都无法读取实际值。 Instead I see <no such value>.相反,我看到 <no such value>。

I read this question: Debugging Qt app with Qt Creator: <no such value> which offers some insight.我读到这个问题: Debugging Qt app with Qt Creator: <no such value>这提供了一些见解。 But I think the answer is too old.但我认为答案太旧了。 I have not recompiled gdb, but when I run gdb --configure I can see that it was build with python scripting support:我没有重新编译 gdb,但是当我运行 gdb --configure 时,我可以看到它是使用 python 脚本支持构建的:

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

what else could cause this?还有什么可能导致这个? where could I get more info how to fix this?我在哪里可以获得更多信息如何解决这个问题? logs?日志? where?在哪里?

I needed to build a FULL_DEBUG build like this (I'm using cmake):我需要像这样构建一个 FULL_DEBUG 构建(我正在使用 cmake):

cmake ../trunk -DCMAKE_BUILD_TYPE=FULL_DEBUG

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM