使用 Makefile [UNIX] 进行 CLion 调试

CLion debugging using Makefile [UNIX]

目前我在我的 ubuntu 上使用 CLion,并且我已经按照步骤将 Makefile 与 CLion 一起使用,在 Makefile 更改时自动编译等等... https://www.jetbrains.com/help/clion/managing-makefile-projects.html

一切正常,但我现在无法使用 clion 调试 有什么方法可以使用 Makefile 进行调试,还是只能使用 cmakelists 进行调试?

谢谢

按照说明进行操作 here

该过程涉及使用 'Custom Build Target' 和自定义 'External Tools' 创建 'Custom Build Application' - 但它相当快速且轻松。文档中的示例专门针对 make。