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

后端 未结 3 1158

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:48

    Configuration for debugging in Eclipse.

    In eclipse,

    1. Go to Window->preferences
    2. A popup will appear then select C/C++ , click on drop down arrow ,then select Debug and click on drop down arrow.
    3. Select Source Lookup Path and then click on Add.
    4. After clicking on Add, click on Path Mapping and then click on OK.
    5. Specify the mapping path name and then click on Add .
    6. In compilation path select Cygwin path (need to install) and then click ok .
    7. In debug option,click on source Lookup Path and select Path Mapping:Project source and click on apply and then ok.

提交回复
热议问题