我在Ubuntu20.10下运行CLion。这是一个新安装。我曾经成功地运行过CLion。
我已经设置了一个断点,但是当我运行的时候,它变成了一个灰色的"not“标志。我在https://www.jetbrains.com/help/clion/using-breakpoints.html#line-breakpoints上查了一下,它说当代码不可执行时会发生这种情况,这不是问题所在……

或者当“一些调试符号丢失”时。我不知道这是什么意思。我试着搜索如何加载它们,发现许多链接真的没有帮助。
我为gdb和g++做好了准备。以下是我的构建的输出:
====================[ Build | all | Debug ]=====================================
/opt/clion-2021.1.1/bin/cmake/linux/bin/cmake --build /home/thomas/CLionProjects/processcontroller-test/cmake-build-debug --target all -- -j 6
[ 28%] Built target ProcessControllerTest_lib
[ 34%] Built target gtest
[ 62%] Built target ProcessControllerTest_run
[ 74%] Built target gtest_main
[ 74%] Built target gmock
[ 80%] Built target gmock_main
[100%] Built target ProcessControllerTest_tst
Build finished请给我建议。
发布于 2021-06-21 04:03:25
我的问题似乎与G+ plus 10.3.0版本有关。我安装了G+ +9,并更换了我的编译器,断点开始命中。我已经通知jetbrains了。
根据JetBrains的更新,在我的cmake中添加了以下内容:
add_compile_options(-gdwarf-4)现在我可以运行10.3.0了。希望这对其他人有帮助。
https://stackoverflow.com/questions/67285243
复制相似问题