为什么我的断点不会在克里特岛遭受打击? [英] Why are my breakpoints not hit in CLion?
本文介绍了为什么我的断点不会在克里特岛遭受打击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试调试使用CMake配置创建的可执行文件
I'm trying to debug an executable which has been created with CMake configuration
SET(CMAKE_BUILD_TYPE Debug)
但是,CLion不会触发任何断点。可能是什么问题?
However, CLion does not hit any breakpoints. What could be the problem?
推荐答案
事实证明,可执行文件使用以下CMake选项进行编译脚本):
As it has turned out, the executable was compiled with following CMake options (further down in the script):
SET(CMAKE_C_FLAGS_DEBUG "-D_DEBUG")
这是破解CLion的调试功能(它也破坏了大部分调试功能 gdb
)
This was breaking debug functionality for CLion (it was also breaking most of the debug functionality of gdb
)
这篇关于为什么我的断点不会在克里特岛遭受打击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文