无法在QT Creator中使用cmake项目进行调试 [英] Can't debug in QT creator with cmake project
本文介绍了无法在QT Creator中使用cmake项目进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用CMake Build创建了一个新的平原C ++项目。
当我设置一个断点并按下Debug按钮,我收到这个消息:
I created a new Plain C++ Project with CMake Build. When I set a breakpoint and press the Debug Button I get this message:
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.
推荐答案
em> :
You can add this CMake argument to your Build Settings:
-DCMAKE_BUILD_TYPE=Debug
< img src =https://i.stack.imgur.com/dyYJn.pngalt =输入图片说明here>
这篇关于无法在QT Creator中使用cmake项目进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文