我正在尝试将调试器与 Android 设备一起使用,并获取带有此类警告消息的窗口:
This does not seem to be a "Debug" build. Setting breakpoints by file name and line number may fail. Section .debug_info: Not found. Section .debug_abbrev: Not found. Section .debug_line: Not found. Section .debug_str: Not found. Section .debug_loc: Not found. Section .debug_range: Not found. Section .gdb_index: Not found. Section .note.gnu.build-id: Not found. Section .gnu.hash: Not found. Section .gnu_debuglink: Not found.
我正在使用基于 Qt 5.1.1(GCC 4.6.1,64 位)的 Qt Creator 2.8.1。 Qt 库、应用程序和所有依赖项都是使用 GCC 4.8 构建的。
在这种情况下最奇怪的是我可以对主应用程序使用调试器,但所有库都无法进行调试。
最佳答案
通过将库类型从动态更改为静态解决了该问题。
附言也许有人知道为什么动态库不能在android下调试?
关于android - 这似乎不是 “Debug” 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19469437/