这似乎不是“调试”版本

This does not seem to be a “Debug” build

本文关键字:调试 版本      更新时间:2023-10-16

我正在尝试将调试器与 android 设备一起使用,并得到带有以下警告消息的窗口:

   这似乎不是"调试"版本。    按文件名和行号设置断点可能会失败。    第 .debug_info 部分:未找到。    第 .debug_abbrev 节:未找到。    第 .debug_line 节:未找到。    第 .debug_str 部分:未找到。    第 .debug_loc 节:未找到。    第 .debug_range 节:未找到。    第 .gdb_index 节:未找到。    部分 .note.gnu.build-id:未找到。    部分 .gnu.hash:未找到。    第 .gnu_debuglink 节:未找到。

我正在使用基于Qt 5.1.1(GCC 4.6.1,64位)的Qt Creator 2.8.1。Qt库,应用程序和所有依赖项都是使用GCC 4.8构建的。

在这种情况下,最奇怪的是我可以为主应用程序使用调试器,但所有库都无法进行调试。

通过将库类型从动态更改为静态解决了该问题。

附言也许有人知道为什么动态库无法在 android 下进行调试?