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
Please sign in to leave a comment.
Hello!
Please go to
File | Settings | Build, Execution, Deployment | Makefile
and in the Build target field specify prog. After that doTools | Makefile | Clean and Reload Makefile Project
. Does it help?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.
Ichibrosan , have you done
Tools | Makefile | Clean and Reload Makefile Project
after adding-g
toCXXFLAGS
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 doHelp | 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).