Reputation: 5191
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.
Upvotes: 8
Views: 10913
Reputation: 1099
You can add this CMake argument to your Build Settings:
-DCMAKE_BUILD_TYPE=Debug
Upvotes: 10