Cant debug my aplicattion compiled with Makefile

I have a C and Assembly application that i would like to debug using CLion, i have several .c and .h files compiled in a makefile and they all work together if i do "make run" I tried linking them to CLion but i have had no success in getting the debugger to work, i tried a few things but noon have worked.

This is what my make looks like

0
3 comments

Hello!

Please go to File | Settings | Build, Execution, Deployment | Makefile and in the Build target field specify prog. After that do Tools | Makefile | Clean and Reload Makefile Project. Does it help? 

0

I started with a CLion Makefile project on github, and while the sample project (hello world) will compile and run, debugging isn't working. I added -g to the compile flags but that hasn't helped. The debugger just blows right past the breakpoints. This is important to me because I loathe cmake.

0

Ichibrosan , have you done Tools | Makefile | Clean and Reload Makefile Project after adding -g to CXXFLAGS in the Makefile? 

If you have, please go to Help | Diagnostic Tools | Debug Log Settings, add #com.jetbrains.cidr.execution.debugger there, reproduce the issue, then do Help | Collect Logs and Diagnostic Data and send the resulting archive to clion-support at jetbrains.com together with the link to this thread. Do not forget to disable debug logging after that. Note that logs might contain private user information (like file paths and names).

0

Please sign in to leave a comment.