Debugger never reaches breakpoints CLion 2021.1.1 MacOS.11
已回答
First of all here's the debugger configuration :
Then the data views : 
When I place a breakpoint in any program, the debugger won't reach it and I can't figure out why ? Is it related to OS11 ?
I compile my C projects with -g3 flag.
Can I get some help ? Debugging is a must !
请先登录再写评论。
Hello!
Please create a default "Hello, World!" project (`File | New Project` > `C Executable` > `Create`). Does debugging work in it?
Anna Falevskaya yes it worked but that's not exactly what I wanted. If I get it right, it only works with Cmake projects, but I want it to work on Makefile projects. It works on Linux (Makefile projects) and I don't know why it won't work for me...
Here's a typical example of one of my project architecture where debugger works on Linux but not for me (MacOS11) :
>debugger works on Linux but not for me (MacOS11)
Probably on Linux gcc and GDB are used. And I assume on macOS you use the default toolchain with clang and LLDB (`Preferences | Build, Execution, Deployment | Toolchains`), is that correct? As far as I see, clang support only "-g0" and "-g" options - https://clang.llvm.org/docs/UsersManual.html#controlling-debug-information. Could you please try changing "-g3" to "-g"?
How I thought I tested this flag already but seems like I did not ! It worked fine thank you !