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

后端 未结 3 1106

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

    I don't know if this has changed in the 4+ years since the question was posted, but there's a much easier way to do this. I'm on Eclipse Luna (4.4.2).

    > eclipse&
    

    then

    File > Import > C/C++ > C/C++ Executable > Next > browse to executable > Next > choose a project name > Finish

    No other project setup required, no source paths (which should be in the object code). Just like running gdb/insight/etc. Almost makes it worth installing Java.

提交回复
热议问题