I have import a “existing code as makefile project” project in eclipse.
I want to debug in eclipse such as I can make breakpoint or step in step out the code.
If I directly debug the project the eclipse say there are no source code for XXX.cpp, so that I can not debug.
How should I change the makefile to debug in the eclipse?
Just make sure your Makefile target does not strip the executable, and it includes debug symbols.
That means the
gccline must not contain-s, and it should contain-gAn example of such simple Makefile would be: