首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在cmake项目的QT创建者中进行调试

无法在cmake项目的QT创建者中进行调试
EN

Stack Overflow用户
提问于 2015-09-14 09:01:09
回答 1查看 9.5K关注 0票数 8

我创建了一个新的带有C++构建的平原CMake项目。当我设置一个断点并按下Debug Button时,我会得到以下消息:

代码语言:javascript
运行
复制
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: Found.
Section .gnu.hash: Found.
Section .gnu_debuglink: Not found.
EN

Stack Overflow用户

回答已采纳

发布于 2015-09-14 09:04:10

可以将此CMake参数添加到构建设置中

代码语言:javascript
运行
复制
-DCMAKE_BUILD_TYPE=Debug

票数 10
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32560862

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档