Debugging broken in CLion

After changing platform (Windows->Linux) and upgrading to last version, the debugging is not working anymore (breakpoint not used, and sigsev displaying assembly code). It turns out the debug console display "No symbol table is loaded", meaning that the code has not been compiled with the -g option in the debug mode.

Adding the line SET(CMAKE_CXX_FLAGS_DEBUG "-g") in the cmake temporarily fixes the issue.

Please fix the problem and/or explain how to make sure the debug mode is compiling with the -g option.

0

Hi! Do you use the Debug CMake profile to build an executable? The build type can be selected using the run/debug configuration selector on the Main toolbar or Navigation bar:

Please do Tools | CMake | Reset Cache and Reload Project, choose the Debug profile and run the debug process again. Does the issue persist? If yes, please enable debugger logging as described here, reproduce the issue and send the resulting idea.log file to clion-support at jetbrains.com. Thanks.

0

请先登录再写评论。