Debugging not working when using the Makefile feature in 2020.2 EAP

Hi there!

I am currently opening a open source makefile project in Clion 2020.2 EAP realease. It did run successfully without a CMakeList file. But I intended to run it step by step under the debug mode and every time I click the debug button, it seems the program just ignores the breakpoints and runs as normally build/run. I wonder if there is a way that I can both use the  new makefile feature and debug the code as a normal Cmake project?

Thanks for your help!

Below is my Run/Debug Configurations:

4

Hello!

Does your Makefile target include debug symbols (https://stackoverflow.com/a/12790893)?

If I add -g to CXXFLAGS in https://github.com/remonbonbon/makefile-example, I can debug the app target just fine.

4

请先登录再写评论。