我使用CMake Build创建了一个新的Plain C++项目。
当我设置一个断点并按“调试”按钮时,我收到以下消息:

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.

最佳答案

您可以将此CMake参数添加到“build设置”中:

-DCMAKE_BUILD_TYPE=Debug

cmake - 无法使用cmake项目在QT Creator中进行调试-LMLPHP

关于cmake - 无法使用cmake项目在QT Creator中进行调试,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32560862/

10-13 05:40