Debugger never reaches breakpoints CLion 2021.1.1 MacOS.11

Answered

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 !

0
4 comments

Hello!

Please create a default "Hello, World!" project (`File | New Project` > `C Executable` > `Create`). Does debugging work in it?

0

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) :

0

>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"?

1

How I thought I tested this flag already but seems like I did not ! It worked fine thank you !

0

Please sign in to leave a comment.