我创建了一个新的带有C++构建的平原CMake项目。当我设置一个断点并按下Debug Button时,我会得到以下消息:
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.
发布于 2015-09-14 09:04:10
可以将此CMake参数添加到构建设置中
-DCMAKE_BUILD_TYPE=Debug
https://stackoverflow.com/questions/32560862
复制相似问题