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断点无法执行

Problem Description

In the process of debugging using CLion
insert image description here
, as shown in the figure, the breakpoint cannot be executed, and it will be skipped directly. In debug mode, it will not stop at the breakpoint.

solution

The reason is that the file name contains Chinese, and the directory name cannot contain Chinese, otherwise breakpoint debugging is not possible. The specific reason is not known, it may be gdb. If someone knows how to debug a file containing Chinese, please tell me.
But in fact, Chinese directories and files can be run, but if you want to debug, you may not be able to use Chinese file names. After modification, you
can run
insert image description here

Guess you like

Origin blog.csdn.net/xxmy7/article/details/124096597