CLion断点无法执行The breakpoint will not currently be hit. No executable code is associated with this line

The breakpoint will not currently be hit. No executable code is associated with this line.CLion断点无法执行

问题描述

使用CLion想调试的过程中
在这里插入图片描述
如图,打的断点无法执行,直接会跳过,debug模式下不会在断点处停。

解决方案

原因是文件名中包含中文,目录名也不能包含中文,否则无法断点调试,具体原因还不知道,可能是gdb吧,如果有大佬知道怎么样可以调试含中文的文件可以告诉我下。
但其实中文的目录和文件,是可以运行的,但是如果想调试可能就无法使用中文的文件名了
修改之后就可以运行了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xxmy7/article/details/124096597