How Do I Use Eclipse to Debug a C++ Program on Linux?

后端 未结 3 1105

I don\'t use Eclipse as an IDE, and have no interest in doing so. However, I do like its source-level debugging.

Is there any way I can use it to debug a C++ Linux app

3条回答
  •  被撕碎了的回忆
    2021-02-07 21:42

    Take a look at this question. Create a C/C++-project, use your project's source directory as project directory, select to use the external builder, and change "make" to whatever tool you want.

    The tricky part is to get the indexer to work correctly and find all your header files.

    EDIT: CMake 2.6.x has support for generating CDT project files, which might be a more straightforward solution.

提交回复
热议问题