Clion cannot find the header file, cannot DEBUG, cannot enter the breakpoint, and the breakpoint is grayed out.

1. The header file of the remote toolchain cannot be found

Insert image description here
①Check the cmake header file import instructionsinclude_directories(SYSTEM "/usr/lib/jvm/jdk-17-oracle-x64/include")
②Menu barTools->Resyinc with remote hosts
③Check whether the operation of "target|toolchain" is correct
Insert image description here

2.gdb is not installed or the version is incorrect and cannot be debugged

yum offline installation, the required version may not be available
Official source code compilation and installation

tar -xvf gdb-8.3.tar.gz  && cd gdb-8.2/ && ./configure --prefix=/usr/local  && make -j8 && make install 

3.Remote debug breakpoint is grayed out

Insert image description here
To set the build type, you can set it through the following buttons (lowest priority) or add CMakeList.txt SET(CMAKE_BUILD_TYPE "Debug/Release/...”) or cmake command line parameter setting.

Debug; debugging version
Release; official version
RelWithDebInfo; a version that is both optimized and debugging
MinSizeRel ;Minimum size version
Insert image description here

Guess you like

Origin blog.csdn.net/qq_39506978/article/details/132484111