| How to debug a C/C++ executable that is compiled outside of Eclipse? [message #128048] |
Fri, 06 January 2006 15:50  |
Eclipse User |
|
|
|
Originally posted by: qzhang.morphotech.com
Hi everyone,
I'm new to Eclipse. I wonder how to use Eclipse to debug a C/C++ executable
when the executable is compiled by an in command line makefile. Do I have to
create a project in Eclipse first and import all source files and the
executable? Is there a simpler way?
Thank you very much!
Qing
|
|
|
|
| Re: How to debug a C/C++ executable that is compiled outside of Eclipse? [message #128570 is a reply to message #128280] |
Mon, 09 January 2006 13:18  |
Eclipse User |
|
|
|
Originally posted by: qzhang.morphotech.com
Hi Jeff,
Thank you very much for your answer!
So we need to create a project and import the files of source code to the
project before debuging? If there are a number of source code files, then we
need to add these files one by one. Is there a simpler way to debug?
Thank you again!
Qing
"Jeff Myers" <myersj@gmail.com> wrote in message
news:dpolcq$600$1@utils.eclipse.org...
> Qing,
>
> I've never debugged a C app using CDT, but I'm pretty sure that you'll
> need to have the source available in Eclipse to be able to debug in a
> meaningful way... to be able to choose where to set breakpoints, to know
> where you are in the code you're debugging, etc. If you're compiling
> externally you also have to ensure that the makefile is compiling with
> debug options enabled.
>
> Hope this helps,
> - Jeff
|
|
|
Powered by
FUDForum. Page generated in 0.09140 seconds