CLion给出以下悬停消息,并带有“no”符号而不是断点红点:
This breakpoint will currently not hit. No executable code associated with the following line.
当我在打印语句上设置断点时,也会发生这种情况。 print语句确实在std输出中被打印。那么,该行如何不与可执行代码关联?
最佳答案
这很可能意味着代码已经过优化,不会包含在您正在运行的可执行文件中。
断点验证是recent feature。
关于c++ - 断点不会影响CLion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57269989/