无法在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.